:root {
    --auth-navy: #071524;
    --auth-navy-2: #0c2942;
    --auth-blue: #0d6efd;
    --auth-cyan: #22b8ea;
    --auth-text: #0d2038;
    --auth-muted: #61758e;
    --auth-border: #dce7f2;
    --auth-surface: #ffffff;
}

.auth-page {
    min-height: calc(100vh - var(--tfp-header-fixed-height, 76px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 32px 60px;
    background:
        radial-gradient(circle at 8% 12%, rgba(28, 109, 236, .09), transparent 28rem),
        radial-gradient(circle at 92% 76%, rgba(31, 177, 218, .07), transparent 30rem),
        linear-gradient(180deg, #f5f8fd 0%, #f8fafc 100%);
}

.auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
    width: min(1180px, 100%);
    min-height: 540px;
    overflow: hidden;
    border: 1px solid rgba(207, 222, 237, .95);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(13, 38, 67, .12);
}

.auth-showcase {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px 48px 38px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 40%, rgba(59, 203, 246, .21), transparent 18rem),
        linear-gradient(135deg, #071524 0%, #0c2942 56%, #0b4561 100%);
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 62%, rgba(255,255,255,.025) 62% 62.3%, transparent 62.3% 100%),
        linear-gradient(115deg, transparent 0 70%, rgba(255,255,255,.018) 70% 70.25%, transparent 70.25% 100%);
    pointer-events: none;
}

.auth-showcase__content,
.auth-showcase__secure {
    position: relative;
    z-index: 2;
}

.auth-showcase__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    margin-bottom: 18px;
    border: 1px solid rgba(126, 206, 255, .26);
    border-radius: 999px;
    background: rgba(10, 34, 56, .54);
    color: #9edbff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-showcase h2 {
    max-width: 500px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 4.1vw, 64px);
    line-height: .96;
    font-weight: 850;
    letter-spacing: -.055em;
}

.auth-showcase p {
    max-width: 510px;
    margin: 18px 0 0;
    color: #bbcee0;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.auth-showcase__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.auth-showcase__features span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(135, 194, 228, .2);
    border-radius: 10px;
    background: rgba(8, 27, 45, .52);
    color: #d9edfb;
    font-size: 11px;
    font-weight: 700;
}

.auth-showcase__visual {
    position: absolute;
    right: 42px;
    bottom: 46px;
    width: 250px;
    height: 250px;
    z-index: 1;
    opacity: .98;
}

.auth-showcase__ball {
    position: absolute;
    top: 58px;
    left: 64px;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 31% 27%, rgba(248,255,181,.95) 0 3%, transparent 4%),
        radial-gradient(circle at 38% 34%, #d5f45e 0%, #b9df35 38%, #8fb71a 72%, #75930b 100%);
    box-shadow:
        inset -18px -22px 32px rgba(62, 82, 7, .32),
        0 22px 48px rgba(0, 0, 0, .28),
        0 0 60px rgba(183, 231, 53, .14);
}

.auth-showcase__ball::before,
.auth-showcase__ball::after {
    content: "";
    position: absolute;
    width: 86px;
    height: 103px;
    border: 3px solid rgba(242, 245, 208, .72);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
}

.auth-showcase__ball::before {
    left: -29px;
    top: 11px;
    transform: rotate(18deg);
}

.auth-showcase__ball::after {
    right: -29px;
    top: 11px;
    transform: rotate(18deg);
}

.auth-showcase__orbit {
    position: absolute;
    border: 1px solid rgba(88, 189, 244, .18);
    border-radius: 50%;
}

.auth-showcase__orbit--one { inset: 22px; }
.auth-showcase__orbit--two { inset: -18px; }

.auth-showcase__secure {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: #94b7cf;
    font-size: 11px;
    font-weight: 650;
}

.auth-showcase__secure span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(64, 199, 144, .13);
    color: #65e2ad;
    border: 1px solid rgba(101, 226, 173, .2);
}

.auth-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 46px 48px;
    background: rgba(255,255,255,.99);
}

.auth-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 9px;
    color: #1671e8;
    font-size: 10px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-box h1 {
    margin: 0;
    color: var(--auth-text);
    font-size: 36px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.045em;
}

.auth-lead {
    max-width: 430px;
    margin: 10px 0 24px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form--activation {
    margin: -6px 0 16px;
}

.auth-form label {
    display: grid;
    gap: 7px;
}

.auth-form label > span {
    color: #354b65;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.auth-box input[type="email"],
.auth-box input[type="password"],
.auth-box input[type="text"] {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--auth-border);
    background: #fbfdff;
    color: #10223a;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-box input::placeholder {
    color: #9aaabc;
    font-weight: 500;
}

.auth-box input[type="email"]:focus,
.auth-password:focus-within input {
    border-color: rgba(31, 127, 240, .62);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 127, 240, .09);
}

.auth-password {
    position: relative;
}

.auth-password input {
    padding-right: 52px !important;
}

.auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    place-items: center;
    width: 36px !important;
    min-height: 36px !important;
    height: 36px;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%);
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #60758c !important;
    box-shadow: none !important;
    cursor: pointer;
}

.auth-password__toggle:hover {
    background: #eef5fb !important;
    color: #126edc !important;
}

.auth-password__toggle:focus-visible {
    outline: 2px solid #6bb8ff;
    outline-offset: 1px;
}

.auth-password__icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-password__icon--hide { display: none; }
.auth-password__toggle[aria-pressed="true"] .auth-password__icon--show { display: none; }
.auth-password__toggle[aria-pressed="true"] .auth-password__icon--hide { display: block; }

.auth-remember-note {
    display: flex !important;
    align-items: center;
    gap: 9px !important;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #dce9f7;
    border-radius: 11px;
    background: #f4f8fc;
}

.auth-remember-note input {
    flex: 0 0 auto;
    width: 17px !important;
    height: 17px !important;
    margin: 0;
    padding: 0 !important;
    accent-color: #1671e8;
}

.auth-remember-note span {
    color: #3f5871 !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.auth-box button.auth-submit,
.auth-form--activation > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin-top: 1px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1268ee 0%, #1489ee 62%, #1eb9e5 100%);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(23, 113, 224, .2);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.auth-box button.auth-submit:hover,
.auth-form--activation > button:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(23, 113, 224, .25);
    filter: brightness(1.03);
}

.auth-submit i {
    font-style: normal;
    font-size: 16px;
    font-weight: 500;
}

.auth-error,
.auth-success {
    padding: 11px 12px;
    border-radius: 11px;
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 650;
}

.auth-error {
    background: #fff2f4;
    color: #b42343;
    border: 1px solid #ffd0d8;
}

.auth-success {
    background: #edfbf4;
    color: #067647;
    border: 1px solid #b8efd2;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: #9aacbd;
    font-size: 11px;
    font-weight: 700;
}

.auth-links a {
    color: #176ed9;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-links--single {
    justify-content: flex-start;
    margin-top: 12px;
}

@media (max-width: 980px) {
    .auth-page {
        padding: 24px 20px 48px;
        align-items: flex-start;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        width: min(720px, 100%);
        min-height: 0;
    }

    .auth-showcase {
        min-height: 230px;
        padding: 30px 32px 26px;
    }

    .auth-showcase h2 {
        font-size: 42px;
    }

    .auth-showcase p {
        max-width: 460px;
        margin-top: 12px;
    }

    .auth-showcase__features {
        margin-top: 16px;
    }

    .auth-showcase__visual {
        right: 22px;
        bottom: 4px;
        width: 180px;
        height: 180px;
        opacity: .64;
    }

    .auth-showcase__ball {
        top: 44px;
        left: 50px;
        width: 92px;
        height: 92px;
    }

    .auth-showcase__ball::before,
    .auth-showcase__ball::after {
        width: 63px;
        height: 75px;
        border-width: 2px;
        top: 8px;
    }

    .auth-showcase__ball::before { left: -21px; }
    .auth-showcase__ball::after { right: -21px; }

    .auth-showcase__secure {
        margin-top: 18px;
    }

    .auth-box {
        padding: 34px 32px 36px;
    }
}

@media (max-width: 600px) {
    .auth-page {
        min-height: auto;
        padding: 12px 10px 32px;
        background: #f5f8fc;
    }

    .auth-shell {
        border-radius: 18px;
        box-shadow: 0 16px 38px rgba(13, 38, 67, .1);
    }

    .auth-showcase {
        min-height: 176px;
        padding: 22px 20px 19px;
    }

    .auth-showcase__eyebrow {
        min-height: 24px;
        margin-bottom: 11px;
        padding: 0 9px;
        font-size: 8px;
    }

    .auth-showcase h2 {
        max-width: 290px;
        font-size: 34px;
    }

    .auth-showcase p {
        max-width: 330px;
        margin-top: 9px;
        padding-right: 44px;
        font-size: 12px;
        line-height: 1.45;
    }

    .auth-showcase__features {
        display: none;
    }

    .auth-showcase__visual {
        right: -26px;
        bottom: -22px;
        width: 145px;
        height: 145px;
        opacity: .48;
    }

    .auth-showcase__ball {
        top: 34px;
        left: 40px;
        width: 74px;
        height: 74px;
    }

    .auth-showcase__ball::before,
    .auth-showcase__ball::after {
        width: 51px;
        height: 61px;
        top: 6px;
    }

    .auth-showcase__ball::before { left: -17px; }
    .auth-showcase__ball::after { right: -17px; }

    .auth-showcase__secure {
        font-size: 9px;
    }

    .auth-showcase__secure span {
        width: 19px;
        height: 19px;
    }

    .auth-box {
        padding: 24px 18px 25px;
    }

    .auth-kicker {
        font-size: 8px;
        margin-bottom: 7px;
    }

    .auth-box h1 {
        font-size: 30px;
    }

    .auth-lead {
        margin: 8px 0 20px;
        font-size: 12px;
        line-height: 1.45;
    }

    .auth-form {
        gap: 12px;
    }

    .auth-box input[type="email"],
    .auth-box input[type="password"],
    .auth-box input[type="text"] {
        height: 46px;
        border-radius: 11px;
    }

    .auth-links {
        margin-top: 15px;
    }
}

@media (max-width: 380px) {
    .auth-page { padding-left: 7px; padding-right: 7px; }
    .auth-showcase { padding-left: 17px; padding-right: 17px; }
    .auth-showcase h2 { font-size: 31px; }
    .auth-box { padding-left: 15px; padding-right: 15px; }
}
