﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-body {
    min-height: 100vh;
    color: #18243a;
    background: #f3f6fa;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(460px, 1.08fr) minmax(480px, 0.92fr);
}

/* =========================================
   BRAND SIDE
   ========================================= */

.auth-brand-panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient( 145deg, #020711 0%, #061225 52%, #071a34 100% );
}

    .auth-brand-panel::before {
        position: absolute;
        inset: 0;
        content: "";
        pointer-events: none;
        background-image: linear-gradient( rgba(92, 171, 255, 0.035) 1px, transparent 1px ), linear-gradient( 90deg, rgba(92, 171, 255, 0.035) 1px, transparent 1px );
        background-size: 48px 48px;
    }

    .auth-brand-panel::after {
        position: absolute;
        width: 600px;
        height: 600px;
        right: -290px;
        bottom: -290px;
        content: "";
        border: 1px solid rgba(99, 189, 255, 0.09);
        border-radius: 50%;
        box-shadow: 0 0 0 80px rgba(99, 189, 255, 0.025), 0 0 0 160px rgba(99, 189, 255, 0.015);
    }

.auth-brand-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(4px);
}

.auth-glow-one {
    width: 450px;
    height: 450px;
    top: -200px;
    right: -100px;
    background: radial-gradient( circle, rgba(31, 101, 255, 0.25), transparent 68% );
}

.auth-glow-two {
    width: 430px;
    height: 430px;
    left: -250px;
    bottom: 0;
    background: radial-gradient( circle, rgba(25, 204, 214, 0.14), transparent 70% );
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    width: min( calc(100% - 110px), 720px );
    min-height: 100vh;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    padding: 48px 0 39px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: max-content;
}

.auth-brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

    .auth-brand-copy strong {
        font-size: 0.95rem;
        letter-spacing: 0.075em;
    }

    .auth-brand-copy span {
        margin-top: 7px;
        color: #65d1e1;
        font-size: 0.61rem;
        font-weight: 800;
        letter-spacing: 0.24em;
    }

.auth-hero {
    margin-top: auto;
    padding-top: 90px;
}

.auth-eyebrow {
    display: block;
    margin-bottom: 19px;
    color: #63cbe1;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.17em;
}

.auth-hero h1 {
    max-width: 600px;
    margin: 0;
    color: #ffffff;
    font-size: clamp( 2.9rem, 5vw, 5.2rem );
    line-height: 0.99;
    letter-spacing: -0.055em;
}

    .auth-hero h1 span {
        display: block;
        color: #3687ff;
    }

.auth-hero p {
    max-width: 560px;
    margin: 25px 0 0;
    color: rgba( 221, 234, 250, 0.65 );
    font-size: 0.98rem;
    line-height: 1.75;
}

/* =========================================
   FEATURES
   ========================================= */

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat( 3, minmax(0, 1fr) );
    gap: 12px;
    margin-top: 44px;
}

.auth-feature {
    min-width: 0;
    padding: 17px;
    background: rgba( 255, 255, 255, 0.035 );
    border: 1px solid rgba( 255, 255, 255, 0.07 );
    border-radius: 15px;
}

.auth-feature-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    color: #6ed4e4;
    background: rgba( 51, 126, 255, 0.13 );
    border: 1px solid rgba( 99, 203, 225, 0.15 );
    border-radius: 9px;
    font-size: 0.64rem;
    font-weight: 850;
}

.auth-feature strong {
    display: block;
    color: #f5f9ff;
    font-size: 0.76rem;
    line-height: 1.35;
}

.auth-feature p {
    margin: 7px 0 0;
    color: rgba( 219, 232, 248, 0.42 );
    font-size: 0.66rem;
    line-height: 1.55;
}

.auth-brand-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 40px;
    color: rgba( 218, 232, 249, 0.45 );
    font-size: 0.67rem;
    font-weight: 650;
}

.auth-status-dot {
    width: 7px;
    height: 7px;
    background: #20cf83;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba( 32, 207, 131, 0.08 );
}

/* =========================================
   FORM SIDE
   ========================================= */

.auth-form-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px clamp( 40px, 7vw, 105px ) 27px;
    background: radial-gradient( circle at 100% 0%, rgba( 53, 129, 255, 0.06 ), transparent 34% ), #f7f9fc;
}

.auth-form-container {
    width: min( 100%, 450px );
    margin: auto;
}

.login-heading {
    margin-bottom: 36px;
}

.login-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 27px;
    color: #ffffff;
    background: linear-gradient( 145deg, #1557da, #287fff );
    border-radius: 14px;
    box-shadow: 0 11px 30px rgba( 40, 127, 255, 0.2 );
    font-size: 0.76rem;
    font-weight: 850;
}

.login-kicker {
    display: block;
    margin-bottom: 9px;
    color: #2a7bff;
    font-size: 0.63rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.login-heading h2 {
    margin: 0;
    color: #101b2e;
    font-size: 2.3rem;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.login-heading p {
    max-width: 390px;
    margin: 11px 0 0;
    color: #788599;
    font-size: 0.87rem;
    line-height: 1.55;
}

/* =========================================
   FORM
   ========================================= */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .auth-field label {
        color: #34435a;
        font-size: 0.75rem;
        font-weight: 750;
    }

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auth-forgot-link {
    color: #287cff;
    font-size: 0.7rem;
    font-weight: 700;
}

    .auth-forgot-link:hover {
        text-decoration: underline;
    }

.auth-input-wrapper {
    min-height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    box-shadow: 0 3px 9px rgba( 8, 22, 44, 0.025 );
    transition: border-color 170ms ease, box-shadow 170ms ease;
}

    .auth-input-wrapper:focus-within {
        border-color: #3d86f7;
        box-shadow: 0 0 0 4px rgba( 61, 134, 247, 0.09 );
    }

.auth-input-icon {
    width: 50px;
    flex: 0 0 50px;
    color: #9aa9bb;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
}

.auth-input {
    width: 100%;
    height: 50px;
    padding: 0 12px 0 0;
    color: #172237;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 0.83rem;
}

    .auth-input::placeholder {
        color: #b0b9c6;
    }

.password-toggle {
    height: 50px;
    padding: 0 17px;
    color: #637086;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 750;
}

    .password-toggle:hover {
        color: #287cff;
    }

.auth-field-error {
    color: #dc4c64;
    font-size: 0.68rem;
}

.auth-validation {
    color: #b22e46;
    background: #fff0f3;
    border: 1px solid #ffd5dd;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.5;
}

    .auth-validation:empty {
        display: none;
    }

    .auth-validation ul {
        margin: 0;
        padding: 10px 14px 10px 29px;
    }

/* =========================================
   CHECKBOX
   ========================================= */

.auth-checkbox {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #68768a;
    cursor: pointer;
    font-size: 0.73rem;
}

    .auth-checkbox input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.auth-checkbox-box {
    position: relative;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: #ffffff;
    border: 1px solid #cfd9e5;
    border-radius: 5px;
}

.auth-checkbox input:checked + .auth-checkbox-box {
    background: #287cff;
    border-color: #287cff;
}

    .auth-checkbox input:checked + .auth-checkbox-box::after {
        position: absolute;
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
        content: "";
        border: solid #ffffff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

/* =========================================
   SUBMIT
   ========================================= */

.auth-submit {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 19px 0 22px;
    color: #ffffff;
    background: linear-gradient( 135deg, #135edc, #287fff );
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 13px 27px rgba( 40, 127, 255, 0.21 );
    font-size: 0.78rem;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

    .auth-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 32px rgba( 40, 127, 255, 0.27 );
    }

.auth-submit-arrow {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: rgba( 255, 255, 255, 0.13 );
    border-radius: 8px;
    font-size: 0.9rem;
}

/* =========================================
   SUPPORT
   ========================================= */

.login-support {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 35px;
    text-align: center;
}

.login-support-line {
    width: 100%;
    height: 1px;
    margin-bottom: 23px;
    background: #e2e8f0;
}

.login-support p {
    margin: 0;
    color: #97a2b1;
    font-size: 0.68rem;
}

.login-support a {
    margin-top: 5px;
    color: #46617e;
    font-size: 0.7rem;
    font-weight: 750;
}

    .login-support a:hover {
        color: #287cff;
    }

.auth-form-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 28px;
    color: #a1abb9;
    font-size: 0.62rem;
}

    .auth-form-footer a:hover {
        color: #287cff;
    }

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1050px) {

    .auth-shell {
        grid-template-columns: 0.92fr 1.08fr;
    }

    .auth-brand-content {
        width: calc( 100% - 60px );
    }

    .auth-feature-grid {
        grid-template-columns: 1fr;
    }

    .auth-feature:nth-child(3) {
        display: none;
    }
}

@media (max-width: 800px) {

    .auth-shell {
        display: block;
    }

    .auth-brand-panel {
        min-height: auto;
    }

    .auth-brand-content {
        min-height: auto;
        padding: 27px 0 35px;
    }

    .auth-hero {
        margin-top: 45px;
        padding-top: 0;
    }

        .auth-hero h1 {
            font-size: 2.55rem;
        }

        .auth-hero p {
            font-size: 0.85rem;
        }

    .auth-feature-grid {
        display: none;
    }

    .auth-brand-footer {
        display: none;
    }

    .auth-form-panel {
        min-height: auto;
        padding: 48px 25px 24px;
    }

    .auth-form-container {
        width: min( 100%, 500px );
    }
}
