:root {
    --auth-bg-start: #07111f;
    --auth-bg-mid: #0d1a2b;
    --auth-bg-end: #12253d;
    --auth-card-bg: rgba(255, 255, 255, 0.96);
    --auth-card-line: rgba(148, 163, 184, 0.24);
    --auth-card-shadow: 0 36px 90px rgba(8, 15, 28, 0.3);
    --auth-text: #102033;
    --auth-heading: #07111f;
    --auth-muted: #5f6f82;
    --auth-line: #d8e1eb;
    --auth-input-bg: #f8fafc;
    --auth-primary: #0f766e;
    --auth-primary-strong: #115e59;
    --auth-primary-soft: rgba(15, 118, 110, 0.12);
    --auth-white: #f8fbff;
    --auth-danger: #c53030;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.premium-auth-page {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-white);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.18), transparent 28%),
        linear-gradient(135deg, var(--auth-bg-start) 0%, var(--auth-bg-mid) 48%, var(--auth-bg-end) 100%);
}

.premium-auth-shell {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 12px 18px;
    isolation: isolate;
}

.premium-auth-shell-simple {
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-auth-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

.premium-auth-orb-one {
    top: -120px;
    left: -70px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.38), transparent 72%);
}

.premium-auth-orb-two {
    right: -90px;
    bottom: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.26), transparent 72%);
}

.premium-auth-orb-three {
    top: 42%;
    right: 22%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 74%);
}

.premium-auth-grid {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    min-height: calc(100vh - 24px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 470px);
    gap: 20px;
    align-items: center;
}

.premium-auth-register .premium-auth-grid {
    width: min(1160px, 100%);
    grid-template-columns: minmax(0, 0.98fr) minmax(410px, 580px);
}

.premium-auth-story {
    padding: 6px 0;
    max-width: 560px;
}

.premium-auth-story-compact {
    max-width: 390px;
}

.premium-auth-story-register {
    max-width: 410px;
}

.premium-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-white);
    text-decoration: none;
    margin-bottom: 14px;
}

.premium-auth-brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 30px rgba(7, 17, 31, 0.22);
}

.premium-auth-brand-mark img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.premium-auth-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.premium-auth-brand-copy strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.premium-auth-brand-copy span {
    font-size: 0.83rem;
    color: rgba(226, 232, 240, 0.82);
}

.premium-auth-kicker,
.premium-auth-eyebrow,
.premium-auth-note-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.premium-auth-story .premium-auth-kicker {
    margin-bottom: 4px;
}

.premium-auth-story h1,
.premium-auth-card-head h2 {
    margin: 14px 0 8px;
    font-family: "Play", sans-serif;
    line-height: 1.08;
}

.premium-auth-story h1 {
    font-size: clamp(1.9rem, 3vw, 3.15rem);
    max-width: 11ch;
}

.premium-auth-story-copy,
.premium-auth-card-head p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.premium-auth-story-copy {
    max-width: 54ch;
    color: rgba(226, 232, 240, 0.86);
}

.premium-auth-story-points {
    margin-top: 16px;
    max-width: 360px;
}

.premium-auth-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-width: 240px;
}

.premium-auth-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 28px rgba(3, 9, 20, 0.18);
}

.premium-auth-feature-card-wide {
    grid-column: 1 / -1;
}

.premium-auth-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.16);
    color: #d7fffb;
    flex: 0 0 auto;
}

.premium-auth-feature-icon i {
    font-size: 1rem;
}

.premium-auth-feature-icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.premium-auth-feature-card strong {
    display: block;
    margin-bottom: 0;
    color: var(--auth-white);
    font-size: 0.84rem;
    font-weight: 800;
}

.premium-auth-feature-card div span {
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.75rem;
    line-height: 1.45;
}

.premium-auth-metrics {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.premium-auth-metrics article {
    min-height: 132px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(15, 23, 42, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 45px rgba(2, 6, 23, 0.18);
}

.premium-auth-metrics strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 800;
}

.premium-auth-metrics span {
    display: block;
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.7;
    font-size: 0.94rem;
}

.premium-auth-note {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-auth-note p {
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.7;
}

.premium-auth-panel {
    display: flex;
    justify-content: flex-end;
}

.premium-auth-panel-compact {
    justify-content: flex-end;
}

.premium-auth-card {
    width: 100%;
    padding: 20px;
    border-radius: 22px;
    background: var(--auth-card-bg);
    color: var(--auth-text);
    border: 1px solid var(--auth-card-line);
    box-shadow: var(--auth-card-shadow);
    backdrop-filter: blur(14px);
}

.premium-auth-card-wide {
    max-width: 560px;
}

.premium-auth-card-narrow {
    max-width: 408px;
}

.premium-auth-card-register {
    max-width: 560px;
}

.premium-auth-card-tight {
    padding: 18px;
    border-radius: 20px;
}

.premium-auth-card-head h2 {
    color: var(--auth-heading);
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    max-width: 11ch;
}

.premium-auth-card-head-compact h2 {
    max-width: 13ch;
}

.premium-auth-card-head-slim h2 {
    margin-top: 12px;
    font-size: clamp(1.4rem, 1.8vw, 1.9rem);
    max-width: none;
}

.premium-auth-card-head-slim p {
    font-size: 0.86rem;
    line-height: 1.45;
}

.premium-auth-card-head p {
    color: var(--auth-muted);
}

.premium-auth-form {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.premium-auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.premium-auth-field {
    display: grid;
    gap: 6px;
}

.premium-auth-field-full {
    grid-column: 1 / -1;
}

.premium-auth-label {
    color: var(--auth-heading);
    font-size: 0.84rem;
    font-weight: 700;
}

.premium-auth-input {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 11px;
    border-radius: 13px;
    border: 1px solid var(--auth-line);
    background: var(--auth-input-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.premium-auth-input:focus-within {
    border-color: rgba(15, 118, 110, 0.48);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--auth-primary-soft);
    transform: translateY(-1px);
}

.premium-auth-input i {
    flex: 0 0 auto;
    color: #7c8aa0;
    font-size: 1rem;
}

.premium-auth-input input {
    width: 100%;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: var(--auth-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 0;
}

.premium-auth-input input::placeholder {
    color: #99a5b7;
    font-weight: 500;
}

.premium-auth-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.premium-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-muted);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}

.premium-auth-check .form-check-input {
    margin: 0;
    width: 1.05rem;
    height: 1.05rem;
    border-color: #95a2b3;
}

.premium-auth-link {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.premium-auth-link:hover {
    color: var(--auth-primary-strong);
    text-decoration: underline;
}

.premium-auth-submit {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #0b8a7f 100%);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.premium-auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 24px 38px rgba(15, 118, 110, 0.3);
}

.premium-auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
    color: var(--auth-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.premium-auth-footer-start {
    justify-content: flex-start;
}

.premium-auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.premium-auth-divider::before,
.premium-auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--auth-line);
}

.premium-auth-divider span {
    padding: 0 14px;
}

.premium-auth-errors,
.premium-auth-alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 12px;
}

.premium-auth-errors {
    border: 1px solid rgba(197, 48, 48, 0.18);
    background: rgba(197, 48, 48, 0.07);
    color: var(--auth-danger);
}

.premium-auth-errors.validation-summary-valid {
    display: none;
}

.premium-auth-errors ul {
    margin: 0;
    padding-left: 18px;
}

.premium-auth-alert {
    margin-bottom: 0;
}

.premium-auth-points {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.premium-auth-points span {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.8rem;
    font-weight: 700;
}

.premium-auth-grid-split {
    width: min(980px, 100%);
    grid-template-columns: minmax(260px, 0.88fr) minmax(360px, 408px);
    min-height: calc(100vh - 24px);
    gap: 28px;
}

.premium-auth-grid-login {
    width: min(960px, 100%);
}

.premium-auth-register .premium-auth-grid-register-split {
    width: min(1010px, 100%);
    grid-template-columns: minmax(280px, 0.82fr) minmax(500px, 560px);
    min-height: calc(100vh - 24px);
    gap: 26px;
}

.premium-auth-simple .premium-auth-grid-simple {
    width: min(470px, 100%);
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100vh - 32px);
}

.premium-auth-register .premium-auth-grid-register {
    width: min(760px, 100%);
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100vh - 32px);
}

.premium-auth-panel-center {
    justify-content: center;
}

.premium-auth-brand-dark {
    color: var(--auth-heading);
    margin-bottom: 14px;
}

.premium-auth-brand-dark .premium-auth-brand-copy span {
    color: var(--auth-muted);
}

.premium-auth-eyebrow-soft {
    color: var(--auth-heading);
    border-color: rgba(15, 118, 110, 0.12);
    background: rgba(15, 118, 110, 0.08);
}

.premium-auth-helper {
    margin: -2px 0 0;
    color: var(--auth-muted);
    font-size: 0.78rem;
    line-height: 1.4;
    font-weight: 600;
}

.field-validation-error {
    display: block;
    color: var(--auth-danger);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 1080px) {
    .premium-auth-grid,
    .premium-auth-register .premium-auth-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .premium-auth-grid-split,
    .premium-auth-register .premium-auth-grid-register-split {
        width: min(620px, 100%);
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        gap: 22px;
    }

    .premium-auth-panel {
        justify-content: stretch;
    }

    .premium-auth-card,
    .premium-auth-card-wide {
        max-width: 100%;
    }

    .premium-auth-story {
        padding-right: 0;
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .premium-auth-shell {
        padding: 14px 12px;
    }

    .premium-auth-grid {
        min-height: auto;
    }

    .premium-auth-story h1 {
        max-width: none;
    }

    .premium-auth-metrics,
    .premium-auth-form-grid,
    .premium-auth-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .premium-auth-card {
        padding: 18px 16px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .premium-auth-inline,
    .premium-auth-footer,
    .premium-auth-note {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .premium-auth-story h1 {
        font-size: 2.3rem;
    }
}
