.auth-modern {
    min-height: 100vh;
    background: #050606;
    color: #f2f4ee;
    display: grid;
    place-items: center;
    padding: 28px 18px;
    font-family: Inter, system-ui, sans-serif;
    position: relative;
    overflow: hidden
}

.auth-modern:before {
    content: "";
    position: absolute;
    width: 700px;
    height: 500px;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(195, 228, 29, .11), transparent 68%);
    pointer-events: none
}

.auth-shell {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .8fr;
    gap: 80px;
    align-items: center;
    position: relative
}

.auth-brand {
    color: #fff;
    font: 700 18px "JetBrains Mono", monospace;
    letter-spacing: -.04em
}

.auth-brand i {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #c3e41d;
    transform: rotate(45deg);
    margin-right: 10px
}

.auth-hero h1 {
    font-size: clamp(48px, 6vw, 76px);
    line-height: .95;
    letter-spacing: -.065em;
    margin: 25px 0
}

.auth-hero h1 em {
    color: #c3e41d;
    font-style: normal
}

.auth-hero p {
    color: #899189;
    max-width: 520px;
    line-height: 1.65
}

.auth-mini {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 28px
}

.auth-mini span {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    padding: 7px 11px;
    color: #8d958d;
    font-size: 11px;
    font-family: "JetBrains Mono", monospace
}

.auth-panel {
    background: rgba(13, 15, 15, .92);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
    max-width: fit-content;
}

.auth-panel h2 {
    font-size: 32px;
    letter-spacing: -.05em;
    margin: 8px 0
}

.auth-muted {
    color: #7f887f;
    font-size: 13px;
    line-height: 1.55
}

.auth-eyebrow {
    font: 600 10px "JetBrains Mono", monospace;
    color: #c3e41d;
    text-transform: uppercase;
    letter-spacing: .16em
}

.auth-field {
    margin-top: 17px
}

.auth-field label {
    display: block;
    font-size: 11px;
    color: #777f77;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 7px
}

.auth-field input {
    width: 100%;
    background: #080a0a;
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    border-radius: 12px;
    padding: 13px 14px;
    outline: none;
    font: 14px Inter
}

.auth-field input:focus {
    border-color: rgba(195, 228, 29, .55);
    box-shadow: 0 0 0 3px rgba(195, 228, 29, .08)
}

.auth-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px;
    background: #c3e41d;
    color: #111400;
    font-weight: 800;
    cursor: pointer;
    margin-top: 18px
}

.auth-btn:hover {
    filter: brightness(1.05)
}

.auth-google {
    display: flex;
    justify-content: center;
    margin-top: 18px
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #606860;
    font: 10px "JetBrains Mono", monospace;
    text-transform: uppercase;
    margin: 18px 0
}

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

.auth-switch {
    text-align: center;
    color: #6f786f;
    font-size: 12px;
    margin-top: 20px
}

.auth-switch a {
    color: #c3e41d
}

.auth-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 20px 0
}

.auth-steps span {
    font: 500 9px "JetBrains Mono", monospace;
    color: #626a62;
    background: #080a0a;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    padding: 7px;
    text-align: center
}

.auth-steps .active {
    color: #c3e41d;
    border-color: rgba(195, 228, 29, .28)
}

.auth-steps .done {
    color: #4be39b
}

.auth-note {
    font-size: 11px;
    color: #656d65;
    line-height: 1.55;
    margin-top: 15px
}

.auth-msg {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08)
}

.auth-msg.error {
    color: #ff8989;
    border-color: rgba(255, 119, 119, .2)
}

.auth-msg.success {
    color: #68e6a4;
    border-color: rgba(75, 227, 155, .2)
}

.auth-legal {
    font-size: 10px;
    color: #555d55;
    line-height: 1.5;
    margin-top: 15px;
    text-align: center
}

/* ============ MOBILE FIXES ============ */
/* Google button wrapper fills the panel so it can never overflow */
.auth-google {
    width: 100%
}

.auth-google > div {
    width: 100%;
    display: flex;
    justify-content: center
}

@media(max-width:800px) {
    .auth-modern {
        padding: 16px 14px;
        place-items: start center
    }

    .auth-shell {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 460px;
        gap: 0
    }

    .auth-hero {
        display: none
    }

    .auth-panel {
        max-width: 100%;
        width: 100%;
        padding: 24px 18px;
        border-radius: 20px;

    }

    .auth-panel h2 {
        font-size: 26px;
        letter-spacing: -.04em
    }

    .auth-eyebrow {
        font-size: 10px
    }

    .auth-muted {
        font-size: 14px
    }

    .auth-field {
        margin-top: 16px
    }

    .auth-field label {
        font-size: 11px;
        margin-bottom: 6px
    }

    /* 16px prevents iOS Safari auto-zoom on focus */
    .auth-field input {
        font-size: 16px;
        padding: 14px;
        border-radius: 12px
    }

    .auth-btn {
        padding: 15px;
        font-size: 16px;
        min-height: 52px;
        margin-top: 18px
    }

    .auth-divider {
        margin: 16px 0
    }

    .auth-steps {
        gap: 6px;
        margin: 18px 0
    }

    .auth-steps span {
        font-size: 9px;
        padding: 8px 2px;
        letter-spacing: .02em
    }

    .auth-msg {
        font-size: 13px;
        padding: 11px 12px
    }

    .auth-note {
        font-size: 12px
    }

    .auth-switch {
        font-size: 14px;
        margin-top: 22px
    }

    .auth-legal {
        font-size: 11px;
        padding: 0 6px
    }
}

/* Very small phones (<=360px) */
@media(max-width:380px) {
    .auth-modern {
        padding: 12px 10px
    }

    .auth-panel {
        padding: 20px 14px;
        border-radius: 18px
    }

    .auth-panel h2 {
        font-size: 23px
    }

    .auth-steps span {
        font-size: 8px;
        padding: 7px 1px
    }
}

.auth-spinner {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(3, 7, 18, 0.68);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 140ms ease, visibility 140ms ease;
}

.auth-spinner.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-spinner__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 26px 34px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.auth-spinner__ring {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(148, 163, 184, 0.3);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: auth-spinner-rotate 800ms linear infinite;
}

.auth-spinner__text {
    font-size: 0.95rem;
    font-weight: 600;
}

body.auth-busy {
    overflow: hidden;
}

@keyframes auth-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-spinner__ring {
        animation-duration: 2s;
    }
}