:root {
    --auth-ink: #0c1720;
    --auth-ink-soft: #162635;
    --auth-surface: rgba(9, 18, 27, 0.72);
    --auth-surface-strong: rgba(11, 20, 31, 0.88);
    --auth-card-border: rgba(255, 255, 255, 0.12);
    --auth-copy: #eaf3fb;
    --auth-copy-muted: #aabecf;
    --auth-brand: #0f766e;
    --auth-brand-soft: #1ca697;
    --auth-accent: #f3b766;
    --auth-danger: #ff7b6b;
    --auth-success: #6fe2b8;
    --auth-shadow: 0 24px 80px rgba(2, 8, 14, 0.48);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.auth-experience {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--auth-copy);
    background:
        radial-gradient(circle at 15% 20%, rgba(30, 166, 151, 0.24), transparent 25%),
        radial-gradient(circle at 82% 12%, rgba(243, 183, 102, 0.24), transparent 22%),
        radial-gradient(circle at 50% 88%, rgba(11, 119, 193, 0.16), transparent 28%),
        linear-gradient(135deg, #061018 0%, #0d1721 38%, #12283b 100%);
    overflow-x: hidden;
}

body.auth-modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.auth-scene {
    position: relative;
    min-height: 100vh;
    padding: 32px;
}

.auth-scene::before,
.auth-scene::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.34;
    pointer-events: none;
    z-index: 0;
}

.auth-scene::before {
    left: -9rem;
    top: -8rem;
    background: rgba(28, 166, 151, 0.4);
}

.auth-scene::after {
    right: -8rem;
    bottom: -10rem;
    background: rgba(243, 183, 102, 0.28);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(96vw, 1800px);
    min-height: calc(100vh - 64px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(5, 12, 20, 0.74);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(20px);
}

.auth-hero {
    position: relative;
    padding: 52px 52px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: space-between;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-hero__intro {
    max-width: 66rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.auth-brand__mark {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    box-shadow: 0 16px 30px rgba(1, 13, 21, 0.28);
}

.auth-brand__mark img {
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
}

.auth-brand__name {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-brand__subline {
    display: block;
    color: var(--auth-copy-muted);
    font-size: 0.95rem;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.06);
    color: #fff6dd;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-kicker--panel {
    margin-bottom: 18px;
    background: rgba(28, 166, 151, 0.12);
    border-color: rgba(83, 215, 199, 0.22);
}

.auth-hero__title {
    margin: 22px 0 18px;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 12ch;
}

.auth-hero__copy {
    max-width: 60ch;
    margin: 0;
    color: var(--auth-copy-muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

.auth-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5fbff;
    font-size: 0.94rem;
    font-weight: 600;
}

.auth-pill__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--auth-accent);
    box-shadow: 0 0 0 6px rgba(243, 183, 102, 0.12);
}

.auth-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: start;
}

.auth-visual {
    position: relative;
    min-height: clamp(340px, 30vw, 470px);
    padding-bottom: 12px;
}

.auth-visual__frame {
    position: relative;
    width: 100%;
    padding: clamp(14px, 1.5vw, 20px);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(6, 13, 20, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.auth-visual__frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
}

.auth-float-card {
    position: absolute;
    max-width: 230px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(9, 18, 27, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 45px rgba(5, 9, 14, 0.4);
    backdrop-filter: blur(14px);
}

.auth-float-media {
    position: absolute;
    width: min(calc(100% - 18px), 292px);
    padding: 14px;
    border-radius: 24px;
    background: rgba(9, 18, 27, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 45px rgba(5, 9, 14, 0.4);
    backdrop-filter: blur(16px);
}

.auth-float-media--top {
    top: 14px;
    right: 6px;
    animation: authFloat 10s ease-in-out infinite;
}

.auth-float-media__caption {
    margin-top: 0;
}

.auth-float-card--bottom {
    left: -10px;
    bottom: -6px;
    animation: authFloat 11s ease-in-out infinite reverse;
}

.auth-float-card__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #fff3db;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-float-card__title {
    margin: 0 0 8px;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
}

.auth-float-card__copy {
    margin: 0;
    color: var(--auth-copy-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-float-card__stat {
    display: block;
    margin-top: 14px;
    color: var(--auth-success);
    font-size: 1.15rem;
    font-weight: 800;
}

.auth-hero__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
    color: var(--auth-copy-muted);
    font-size: 0.92rem;
}

.auth-hero__footer a {
    color: #ffffff;
    text-decoration: none;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.auth-panel__inner {
    width: 100%;
    max-width: 640px;
    padding: 24px 12px;
}

.auth-panel__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--auth-copy-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-panel__title {
    margin: 0 0 10px;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: clamp(2.15rem, 2.8vw, 3.1rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.auth-panel__copy {
    margin: 0 0 28px;
    color: var(--auth-copy-muted);
    font-size: 1.01rem;
    line-height: 1.72;
}

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

.auth-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-form__row--stack {
    flex-direction: column;
    align-items: stretch;
}

.auth-form__row--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field__label {
    color: #f6fbff;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-field__input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    min-height: 58px;
    padding: 0 17px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f8fbff;
    outline: none;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
    font: inherit;
}

.auth-input::placeholder {
    color: rgba(230, 240, 248, 0.4);
}

.auth-input:focus {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.auth-input.is-invalid,
.auth-input[aria-invalid="true"] {
    border-color: rgba(255, 123, 107, 0.85);
}

.auth-input--with-button {
    padding-right: 56px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--auth-copy-muted);
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.auth-field__error {
    margin: 0;
    color: #ffd2cd;
    font-size: 0.84rem;
}

.auth-field__hint {
    margin: 0;
    color: var(--auth-copy-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.auth-checklist {
    display: grid;
    gap: 10px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.auth-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-copy-muted);
    font-size: 0.9rem;
}

.auth-checklist li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--auth-success);
    box-shadow: 0 0 0 5px rgba(111, 226, 184, 0.12);
}

.auth-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--auth-copy-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--auth-brand);
}

.auth-link {
    color: #f8fbff;
    text-decoration: none;
}

.auth-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.auth-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-link-button[disabled] {
    opacity: 0.48;
    cursor: not-allowed;
}

.auth-actions {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    border-radius: 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.auth-button--primary {
    background: linear-gradient(135deg, var(--auth-brand) 0%, var(--auth-brand-soft) 100%);
    color: #f6fffb;
    box-shadow: 0 22px 35px rgba(10, 119, 110, 0.28);
}

.auth-button--primary:hover {
    box-shadow: 0 28px 42px rgba(10, 119, 110, 0.34);
}

.auth-button--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.auth-button--ghost {
    width: auto;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--auth-copy-muted);
    justify-content: flex-start;
}

.auth-button--ghost:hover {
    color: #ffffff;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-support {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--auth-copy-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.auth-panel-note {
    margin-top: 14px;
    color: var(--auth-copy-muted);
    font-size: 0.88rem;
}

.auth-code-banner {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--auth-copy-muted);
    line-height: 1.7;
}

.auth-code-banner strong {
    color: #ffffff;
}

.auth-inline-message {
    min-height: 1.4rem;
    color: var(--auth-copy-muted);
    font-size: 0.9rem;
}

.auth-inline-message.is-success {
    color: var(--auth-success);
}

.auth-inline-message.is-error {
    color: #ffd2cd;
}

.auth-timer {
    color: var(--auth-copy-muted);
    font-size: 0.88rem;
}

.auth-recaptcha {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.14);
}

.auth-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-steps li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-step__index {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff6dd;
    font-weight: 700;
}

.auth-step__title {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: #ffffff;
}

.auth-step__copy {
    color: var(--auth-copy-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.auth-success-ring {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(111, 226, 184, 0.28), rgba(255, 255, 255, 0.06));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.auth-success-ring img {
    width: 48px;
    height: 48px;
}

.auth-countdown {
    margin-top: 14px;
    color: var(--auth-copy-muted);
    text-align: center;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-modal.is-open {
    display: flex;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 14, 0.72);
    backdrop-filter: blur(8px);
}

.auth-modal__dialog {
    position: relative;
    width: min(100%, 540px);
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(8, 16, 24, 0.94);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
    overflow: hidden;
}

.auth-modal__dialog--success {
    box-shadow: 0 34px 80px rgba(10, 119, 110, 0.2);
}

.auth-modal__dialog--danger {
    box-shadow: 0 34px 80px rgba(255, 123, 107, 0.16);
}

.auth-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
}

.auth-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.auth-modal__eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: #fff3db;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-modal__title {
    margin: 0 0 10px;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.92rem;
    font-weight: 700;
    line-height: 1.08;
}

.auth-modal__copy {
    margin: 0 0 20px;
    color: var(--auth-copy-muted);
    line-height: 1.7;
}

.auth-modal__list {
    margin: 0;
    padding-left: 18px;
    color: var(--auth-copy-muted);
    line-height: 1.7;
}

.auth-modal__list li + li {
    margin-top: 6px;
}

.auth-modal__illustration {
    margin-bottom: 18px;
}

.auth-modal__illustration img {
    width: 92px;
    height: 92px;
}

.auth-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.auth-modal__footer {
    margin-top: 22px;
}

.auth-privacy-link {
    color: #ffffff;
}

.auth-page-compact .auth-hero__title {
    max-width: 13ch;
}

@keyframes authFloat {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 1180px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .auth-hero__title {
        max-width: none;
    }

    .auth-panel {
        align-items: flex-start;
    }

    .auth-panel__inner {
        max-width: 760px;
        padding-inline: 0;
    }
}

@media (max-width: 860px) {
    .auth-scene {
        padding: 16px;
    }

    .auth-shell {
        min-height: calc(100vh - 32px);
        border-radius: 28px;
    }

    .auth-hero,
    .auth-panel {
        padding: 24px;
    }

    .auth-panel__inner {
        max-width: none;
        padding: 0;
    }

    .auth-visual-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .auth-visual {
        min-height: 320px;
    }

    .auth-form__row--split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        border-radius: 24px;
    }

    .auth-brand {
        gap: 12px;
    }

    .auth-brand__mark {
        width: 56px;
        height: 56px;
    }

    .auth-hero,
    .auth-panel {
        padding: 20px;
    }

    .auth-hero__title {
        font-size: 2.45rem;
    }

    .auth-form__row {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-visual {
        min-height: 250px;
    }

    .auth-float-card,
    .auth-float-media {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        max-width: none;
        margin-top: 16px;
    }

    .auth-float-media {
        width: 100%;
    }

    .auth-modal {
        padding: 16px;
    }

    .auth-modal__dialog {
        padding: 22px;
        border-radius: 24px;
    }
}
