:root {
    --ob-navy-950: #071c26;
    --ob-navy-900: #0d2b36;
    --ob-navy-800: #123a47;

    --ob-blue: #224870;
    --ob-teal: #44cfcb;
    --ob-teal-dark: #22a6a3;

    --ob-white: #ffffff;
    --ob-bg: #f4f7f9;

    --ob-gray-50: #f8fafc;
    --ob-gray-100: #f1f5f9;
    --ob-gray-200: #e2e8f0;
    --ob-gray-400: #94a3b8;
    --ob-gray-500: #64748b;
    --ob-gray-700: #334155;
    --ob-gray-900: #0f172a;

    --ob-danger: #b42318;
    --ob-danger-bg: #fef3f2;
    --ob-danger-border: #fecdca;

    --ob-radius-sm: 10px;
    --ob-radius: 16px;
    --ob-radius-lg: 24px;

    --ob-shadow:
        0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    background: var(--ob-bg);
    color: var(--ob-gray-900);

    font-family: "DM Sans", sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

svg {
    display: block;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;

    padding: 12px 18px;

    border-radius: 8px;

    background: var(--ob-white);
    color: var(--ob-navy-900);

    font-weight: 700;
}

.skip-link:focus {
    top: 20px;
}


/* ========================================
   PAGE LAYOUT
======================================== */

.login-page {
    display: grid;
    grid-template-columns:
        minmax(420px, 0.95fr)
        minmax(480px, 1.05fr);

    min-height: 100vh;
}


/* ========================================
   BRAND PANEL
======================================== */

.login-brand-panel {
    position: relative;
    overflow: hidden;

    display: flex;

    padding: 56px;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(68, 207, 203, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(78, 165, 217, 0.19),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            var(--ob-navy-950),
            var(--ob-navy-800)
        );

    color: var(--ob-white);
}

.login-brand-panel::before {
    content: "";

    position: absolute;
    right: -130px;
    bottom: -150px;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.login-brand-panel::after {
    content: "";

    position: absolute;
    right: -40px;
    bottom: -60px;

    width: 250px;
    height: 250px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.brand-panel-content {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 610px;
    margin: 0 auto;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    align-self: flex-start;

    color: var(--ob-white);
    text-decoration: none;
}

.brand-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    padding: 9px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.08);
    color: var(--ob-teal);
}

.brand-icon svg {
    width: 100%;
    height: 100%;
}

.brand-name {
    display: flex;
    flex-direction: column;
}

.brand-name strong {
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-name small {
    margin-top: 1px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.welcome-copy {
    max-width: 570px;
    margin: auto 0;
    padding: 80px 0;
}

.welcome-eyebrow,
.login-eyebrow {
    display: inline-block;

    margin-bottom: 17px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.welcome-eyebrow {
    color: var(--ob-teal);
}

.welcome-copy h1 {
    max-width: 560px;
    margin: 0 0 22px;

    font-family: "Manrope", sans-serif;
    font-size: clamp(46px, 5vw, 70px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2.5px;
}

.welcome-copy > p {
    max-width: 530px;
    margin: 0;

    color: rgba(255, 255, 255, 0.76);

    font-size: 18px;
    line-height: 1.75;
}

.feature-list {
    display: grid;
    gap: 15px;

    max-width: 560px;
    margin-top: 40px;
}

.feature-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 13px;
    align-items: start;
}

.feature-check {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: rgba(68, 207, 203, 0.13);
    color: var(--ob-teal);

    font-weight: 800;
}

.feature-item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feature-item strong {
    font-size: 14px;
}

.feature-item span:last-child {
    color: rgba(255, 255, 255, 0.67);
    font-size: 13px;
}

.brand-panel-footer {
    margin: 40px 0 0;

    color: rgba(255, 255, 255, 0.48);

    font-size: 12px;
}


/* ========================================
   FORM PANEL
======================================== */

.login-form-panel {
    display: grid;
    place-items: center;

    padding: 55px 40px;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.9),
            rgba(255, 255, 255, 0.9)
        ),
        var(--ob-bg);
}

.login-form-wrapper {
    width: min(100%, 455px);
}

.mobile-brand {
    display: none;
}

.login-heading {
    margin-bottom: 32px;
}

.login-eyebrow {
    margin-bottom: 12px;
    color: var(--ob-teal-dark);
}

.login-heading h2 {
    margin: 0 0 10px;

    font-family: "Manrope", sans-serif;
    font-size: clamp(31px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.login-heading p {
    margin: 0;

    color: var(--ob-gray-500);

    font-size: 15px;
}


/* ========================================
   ALERT
======================================== */

.login-alert {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: center;

    margin-bottom: 22px;
    padding: 13px 15px;

    border: 1px solid var(--ob-danger-border);
    border-radius: var(--ob-radius-sm);

    background: var(--ob-danger-bg);
    color: var(--ob-danger);
}

.login-alert > span {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--ob-danger);
    color: var(--ob-white);

    font-size: 13px;
    font-weight: 800;
}

.login-alert p {
    margin: 0;
    font-size: 13px;
}


/* ========================================
   FORM
======================================== */

.login-form {
    display: grid;
    gap: 21px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label,
.label-row label {
    color: var(--ob-gray-700);

    font-size: 13px;
    font-weight: 700;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.forgot-password {
    color: var(--ob-blue);

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 56px;

    padding: 0 78px 0 49px;

    border: 1px solid var(--ob-gray-200);
    border-radius: var(--ob-radius-sm);

    outline: none;

    background: var(--ob-white);
    color: var(--ob-gray-900);

    font-size: 15px;

    box-shadow: 0 2px 3px rgba(15, 23, 42, 0.02);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrapper input:focus {
    border-color: var(--ob-teal-dark);

    box-shadow:
        0 0 0 4px rgba(68, 207, 203, 0.13);
}

.input-wrapper input.is-invalid {
    border-color: var(--ob-danger);

    box-shadow:
        0 0 0 4px rgba(180, 35, 24, 0.08);
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);

    color: var(--ob-gray-400);
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;

    padding: 7px 8px;

    border: 0;

    transform: translateY(-50%);

    background: transparent;
    color: var(--ob-blue);

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.password-toggle:hover {
    text-decoration: underline;
}

.field-error {
    min-height: 17px;

    color: var(--ob-danger);

    font-size: 12px;
}

.remember-option {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;

    width: fit-content;

    color: var(--ob-gray-500);

    font-size: 13px;
    cursor: pointer;
}

.remember-option input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;

    accent-color: var(--ob-teal-dark);
}

.login-button {
    position: relative;

    min-height: 56px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 2px;
    padding: 14px 22px;

    border: 0;
    border-radius: var(--ob-radius-sm);

    background:
        linear-gradient(
            135deg,
            var(--ob-blue),
            var(--ob-navy-800)
        );

    color: var(--ob-white);

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 13px 26px rgba(34, 72, 112, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 16px 31px rgba(34, 72, 112, 0.25);
}

.login-button:focus-visible {
    outline: 3px solid rgba(68, 207, 203, 0.4);
    outline-offset: 3px;
}

.login-button:disabled {
    cursor: wait;
    opacity: 0.76;
    transform: none;
}

.button-arrow {
    font-size: 19px;
}

.button-spinner {
    display: none;

    width: 19px;
    height: 19px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--ob-white);
    border-radius: 50%;

    animation: login-spin 0.7s linear infinite;
}

.login-button.is-loading .button-text,
.login-button.is-loading .button-arrow {
    display: none;
}

.login-button.is-loading .button-spinner {
    display: block;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ========================================
   SECURITY AND FOOTER
======================================== */

.security-message {
    display: grid;
    grid-template-columns: 23px 1fr;
    gap: 10px;
    align-items: start;

    margin-top: 25px;
    padding: 14px 15px;

    border: 1px solid var(--ob-gray-200);
    border-radius: var(--ob-radius-sm);

    background: var(--ob-gray-50);
    color: var(--ob-gray-500);
}

.security-message svg {
    width: 22px;
    height: 22px;

    color: var(--ob-teal-dark);
}

.security-message p {
    margin: 0;

    font-size: 12px;
    line-height: 1.55;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: 30px;
    padding-top: 23px;

    border-top: 1px solid var(--ob-gray-200);
}

.login-footer p,
.login-footer a {
    margin: 0;

    color: var(--ob-gray-500);

    font-size: 11px;
}

.login-footer a {
    color: var(--ob-blue);
    font-weight: 700;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 980px) {

    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 45px 25px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;

        margin-bottom: 60px;
    }

    .mobile-brand-icon {
        width: 46px;
        height: 46px;

        padding: 8px;

        border-radius: 13px;

        background: var(--ob-navy-900);
        color: var(--ob-teal);
    }

    .mobile-brand-icon svg {
        width: 100%;
        height: 100%;
    }

    .mobile-brand span:last-child {
        display: flex;
        flex-direction: column;
    }

    .mobile-brand strong {
        font-family: "Manrope", sans-serif;
        font-size: 18px;
    }

    .mobile-brand small {
        color: var(--ob-gray-500);
        font-size: 11px;
    }

}

@media (max-width: 520px) {

    .login-form-panel {
        display: block;
        padding: 28px 20px;
    }

    .login-form-wrapper {
        width: 100%;
    }

    .mobile-brand {
        margin-bottom: 45px;
    }

    .login-heading {
        margin-bottom: 26px;
    }

    .login-heading h2 {
        font-size: 31px;
    }

    .input-wrapper input {
        height: 54px;
    }

    .login-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}