/* ═══ AUTH MODALS — Planet with Animated Photo Grid ═══ */

/* Scoped custom properties */
.auth-overlay {
    --bg: #0a0e1a;
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.35);
    --pink: #c084fc;
    --border: rgba(255, 255, 255, 0.08);
    --text: #fff;
    --text-sec: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.35);
    --radius: 12px;
    --ease: cubic-bezier(.23, 1, .32, 1);
}

body.modal-open {
    overflow: hidden;
}

/* ═══ OVERLAY ═══ */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    opacity: 0;
    background: var(--bg);
    transition: opacity .5s var(--ease);
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.auth-overlay *,
.auth-overlay *::before,
.auth-overlay *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.auth-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-overlay.closing {
    opacity: 0;
}

/* Close button */
.auth-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}

/* CSS-drawn cross */
.auth-close::before,
.auth-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 1.5px;
    background: var(--text-sec);
    border-radius: 1px;
    transition: background .25s;
}

.auth-close::before {
    transform: rotate(45deg);
}

.auth-close::after {
    transform: rotate(-45deg);
}

.auth-close:hover {
    background: rgba(255, 255, 255, .1);
    transform: rotate(90deg);
}

.auth-close:hover::before,
.auth-close:hover::after {
    background: #fff;
}

/* ═══ PLANET COLUMN ═══ */
.planet-col {
    flex: 1 1 50%;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, .04) 0%, transparent 70%);
}

/* Raise nav above overlay so the SAME logo shows through (Nav Logo Synchronicity) */
body.modal-open #mainNav {
    z-index: 1001;
    pointer-events: none;
}

body.modal-open #mainNav>div>div:first-child {
    pointer-events: auto;
}

/* Hide everything in the nav except the logo wrapper when modal is open */
body.modal-open #mainNav>div>*:not(div:first-child) {
    opacity: 0;
    pointer-events: none;
}

/* Orbit rings — 5 rings, evenly spaced ~70px apart */
.orbit-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 920px;
    height: 920px;
    flex-shrink: 0;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring:nth-child(1) {
    width: 630px;
    height: 630px;
    border: 1.5px solid rgba(37, 99, 235, .16);
}

.orbit-ring:nth-child(2) {
    width: 700px;
    height: 700px;
    border: 1px solid rgba(37, 99, 235, .12);
}

.orbit-ring:nth-child(3) {
    width: 770px;
    height: 770px;
    border: 1px solid rgba(37, 99, 235, .08);
}

.orbit-ring:nth-child(4) {
    width: 840px;
    height: 840px;
    border: 1px solid rgba(37, 99, 235, .05);
}

.orbit-ring:nth-child(5) {
    width: 910px;
    height: 910px;
    border: 1px solid rgba(37, 99, 235, .03);
}

/* Satellites */
.sat {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
}

.sat .d {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Orbit keyframes */
@keyframes o1 {
    0% {
        transform: rotate(0) translateX(315px) rotate(0) translate(-50%, -50%)
    }

    100% {
        transform: rotate(360deg) translateX(315px) rotate(-360deg) translate(-50%, -50%)
    }
}

@keyframes o2 {
    0% {
        transform: rotate(0) translateX(350px) rotate(0) translate(-50%, -50%)
    }

    100% {
        transform: rotate(360deg) translateX(350px) rotate(-360deg) translate(-50%, -50%)
    }
}

@keyframes o3 {
    0% {
        transform: rotate(0) translateX(385px) rotate(0) translate(-50%, -50%)
    }

    100% {
        transform: rotate(360deg) translateX(385px) rotate(-360deg) translate(-50%, -50%)
    }
}

@keyframes o4 {
    0% {
        transform: rotate(0) translateX(420px) rotate(0) translate(-50%, -50%)
    }

    100% {
        transform: rotate(360deg) translateX(420px) rotate(-360deg) translate(-50%, -50%)
    }
}

@keyframes o5 {
    0% {
        transform: rotate(0) translateX(455px) rotate(0) translate(-50%, -50%)
    }

    100% {
        transform: rotate(360deg) translateX(455px) rotate(-360deg) translate(-50%, -50%)
    }
}

/* Dot satellites — smaller (3-5px), slower (60-140s), soft glow */

/* Ring 1 dot */
.sat:nth-child(6) .d {
    width: 4px;
    height: 4px;
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, .35);
    animation: o1 80s linear infinite
}

/* Ring 2 dot */
.sat:nth-child(7) .d {
    width: 3px;
    height: 3px;
    background: #6366f1;
    box-shadow: 0 0 5px rgba(99, 102, 241, .3);
    animation: o2 100s linear infinite reverse;
    animation-delay: -35s
}

/* Ring 3 dot — blurred for subtlety */
.sat:nth-child(8) .d {
    width: 5px;
    height: 5px;
    background: #3b82f6;
    box-shadow: 0 0 7px rgba(59, 130, 246, .3);
    filter: blur(1.5px);
    animation: o3 210s linear infinite;
    animation-delay: -20s
}

/* Ring 4 dot */
.sat:nth-child(9) .d {
    width: 3px;
    height: 3px;
    background: #818cf8;
    box-shadow: 0 0 5px rgba(129, 140, 248, .25);
    animation: o4 120s linear infinite reverse;
    animation-delay: -50s
}

/* Ring 5 dot — blurred, ultra-slow for depth */
.sat:nth-child(10) .d {
    width: 4px;
    height: 4px;
    background: #2563eb;
    box-shadow: 0 0 6px rgba(37, 99, 235, .3);
    filter: blur(1.5px);
    animation: o5 270s linear infinite;
    animation-delay: -15s
}

/* Shape satellites (3 total) */
.shape {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.shape.ring-s {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, .2);
    background: transparent;
    filter: blur(1px);
    opacity: .3;
    box-shadow: 0 0 5px rgba(59, 130, 246, .15);
}

.shape.spark {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #93a3f8;
    filter: blur(.5px);
    opacity: .35;
    box-shadow: 0 0 4px rgba(147, 163, 248, .3);
}

.shape.glow {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .15);
    filter: blur(3px);
    opacity: .35;
    box-shadow: 0 0 8px rgba(37, 99, 235, .15);
}

/* Shape orbit assignments */
.sat:nth-child(11) .shape {
    animation: o2 90s linear infinite reverse;
    animation-delay: -40s
}

.sat:nth-child(12) .shape {
    animation: o4 140s linear infinite;
    animation-delay: -60s
}

.sat:nth-child(13) .shape {
    animation: o5 330s linear infinite reverse;
    animation-delay: -25s;
    filter: blur(2.5px);
}

/* ═══ PLANET ═══ */
.planet {
    position: relative;
    z-index: 2;
    width: 580px;
    height: 580px;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 42% 38%,
            rgba(80, 120, 220, .16) 0%,
            rgba(40, 70, 180, .1) 30%,
            rgba(15, 30, 90, .12) 60%,
            rgba(10, 14, 26, .5) 95%);
    border: 1.5px solid rgba(59, 130, 246, .15);
    box-shadow: 0 0 100px rgba(59, 130, 246, .08), inset 0 0 60px rgba(59, 130, 246, .03);
    overflow: hidden;
}

/* Individual face bubble */
.face {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(120, 160, 255, .2);
    opacity: 0;
    transform: scale(0);
    transition: none;
    will-change: transform, opacity;
}

.face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face:hover {
    box-shadow: 0 0 20px rgba(40, 90, 230, .4), 0 0 40px rgba(30, 70, 200, .18);
    transition: box-shadow .25s ease;
}

/* Entry: dynamic scale with controlled spring */
@keyframes faceIn {
    0% {
        opacity: 0;
        transform: scale(.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }

    75% {
        transform: scale(.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Exit: micro-pop then shrink */
@keyframes faceOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    20% {
        opacity: .8;
        transform: scale(1.04);
    }

    100% {
        opacity: 0;
        transform: scale(.3);
    }
}

/* Idle breathe — subtle scale, no position change */
@keyframes breathe1 {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }
}

@keyframes breathe2 {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.07)
    }
}

@keyframes breathe3 {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.04)
    }
}

@keyframes breatheSm {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }
}

.face.visible {
    animation: faceIn .45s cubic-bezier(.25, .9, .5, 1) forwards;
}

.face.swapping-out {
    animation: faceOut .35s ease-in forwards;
}

/* Idle breathe per face index */
.face.idle:nth-child(odd) {
    animation: breathe1 5s ease-in-out infinite;
}

.face.idle:nth-child(even) {
    animation: breathe2 6s ease-in-out infinite;
}

.face.idle:nth-child(3n) {
    animation: breathe3 7s ease-in-out infinite;
}

.face.sm.idle {
    animation: breatheSm 4.5s ease-in-out infinite;
}

/* Sizes + neon glow */
.face.xl {
    width: 105px;
    height: 105px;
    box-shadow: 0 0 14px rgba(40, 90, 230, .3), 0 0 30px rgba(30, 70, 200, .12), 0 4px 12px rgba(0, 0, 0, .3);
}

.face.lg {
    width: 85px;
    height: 85px;
    box-shadow: 0 0 12px rgba(40, 90, 230, .25), 0 0 24px rgba(30, 70, 200, .1), 0 3px 10px rgba(0, 0, 0, .25);
}

.face.md {
    width: 70px;
    height: 70px;
    box-shadow: 0 0 10px rgba(40, 90, 230, .22), 0 0 20px rgba(30, 70, 200, .08), 0 2px 8px rgba(0, 0, 0, .2);
}

.face.sm {
    width: 55px;
    height: 55px;
    box-shadow: 0 0 8px rgba(40, 90, 230, .2), 0 0 16px rgba(30, 70, 200, .07), 0 2px 6px rgba(0, 0, 0, .15);
}

/* Glow */
.planet-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .1) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

/* Label */
.planet-label {
    position: absolute;
    bottom: 5%;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    text-align: center;
}

.planet-label h3 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .04em;
}

.planet-label p {
    font-size: .72rem;
    color: var(--text-dim);
    margin-top: .15rem;
}

/* ═══ FORM COLUMN ═══ */
.form-col {
    flex: 0 0 50%;
    min-width: 480px;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3rem;
    position: relative;
    z-index: 5;
    background: var(--bg);
    border-left: 1px solid var(--border);
    overflow-y: auto;
}

.form-col-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Step progress indicator */
.progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}

.prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    position: relative;
    z-index: 2;
}

/* SVG Ring indicator */
.prog-ring {
    position: relative;
    width: 44px;
    height: 44px;
}

.prog-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.prog-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 2;
}

.prog-ring-fill {
    fill: none;
    stroke: var(--blue);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 119.38;
    stroke-dashoffset: 119.38;
    transition: stroke-dashoffset .4s var(--ease);
}

.prog-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: all .4s var(--ease);
}

/* Active step */
.prog-step.active .prog-num {
    color: var(--blue);
}

.prog-step.active .prog-ring-bg {
    stroke: rgba(59, 130, 246, .15);
}

.prog-step.active .prog-ring-fill {
    filter: drop-shadow(0 0 4px var(--blue-glow));
}

/* Done step */
.prog-step.done .prog-num {
    color: #fff;
    font-size: .7rem;
}

.prog-step.done .prog-ring-fill {
    stroke-dashoffset: 0;
    stroke: var(--blue);
    filter: drop-shadow(0 0 4px var(--blue-glow));
}

.prog-step.done .prog-ring-bg {
    stroke: rgba(59, 130, 246, .15);
}

/* Bonus: patronymic filled — ring gets brighter glow */
.prog-ring-fill.bonus {
    stroke: var(--blue-light);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, .5));
}

.prog-label {
    font-size: .65rem;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color .3s;
}

.prog-step.active .prog-label,
.prog-step.done .prog-label {
    color: var(--text-sec);
}

.prog-line {
    width: 70px;
    height: 2px;
    background: rgba(255, 255, 255, .06);
    position: relative;
    margin: 0 .3rem;
    margin-bottom: 1.6rem;
}

.prog-line-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: var(--blue);
    border-radius: 2px;
    transition: width .5s var(--ease);
    box-shadow: 0 0 6px var(--blue-glow);
}

.prog-line.filled .prog-line-fill {
    width: 100%;
}

/* ═══ FORM ═══ */
.fcard {
    width: 100%;
}

.fcard h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.fcard .sub {
    font-size: .82rem;
    color: var(--text-sec);
    margin-bottom: 1.8rem;
}

.fstep {
    display: none;
    flex-direction: column;
    gap: .9rem;
}

.fstep.active {
    display: flex;
    animation: stepIn .45s var(--ease);
}

@keyframes stepIn {
    0% {
        opacity: 0;
        transform: translateY(14px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Form group */
.fg {
    position: relative;
}

.fg label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 500;
    color: var(--text-sec);
    margin-bottom: .35rem;
    letter-spacing: .02em;
}

.fg label .req {
    color: #ef4444;
    margin-left: 2px;
}

/* Input */
.fi {
    width: 100%;
    padding: .65rem .9rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-size: .88rem;
    font-family: inherit;
    outline: none;
    transition: all .2s;
}

.fi::placeholder {
    color: var(--text-dim);
}

.fi:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
    background: rgba(255, 255, 255, .06);
}

.fi.err {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

/* Validation hint */
.hint {
    position: absolute;
    top: 0;
    right: 0;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: #ef4444;
    display: none;
    text-align: right;
}

.hint.vis {
    display: block;
    animation: hintIn .25s var(--ease);
}

@keyframes hintIn {
    0% {
        opacity: 0;
        transform: translateX(4px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Select dropdown arrow */
.fsel {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    padding-right: 2.4rem;
}

/* Checkbox */
.fchk {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    cursor: pointer;
}

.fchk input[type=checkbox] {
    appearance: none;
    width: 17px;
    height: 17px;
    min-width: 17px;
    border: 1.5px solid rgba(255, 255, 255, .15);
    border-radius: 4px;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    transition: all .2s;
    position: relative;
    margin-top: 2px;
    margin-right: .5rem;
}

/* Validation error: red checkbox highlight */
.fchk input[type=checkbox].chk-err {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}

.fchk input:checked {
    background: var(--blue);
    border-color: var(--blue-light);
}

.fchk input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.fchk span {
    font-size: .78rem;
    color: var(--text-sec);
    line-height: 1.5;
}

.fchk span a {
    color: var(--blue-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Consent links: subtle, same color as text */
.fchk span a.consent-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .25);
    text-underline-offset: 2px;
    transition: text-decoration-color .2s;
}

.fchk span a.consent-link:hover {
    text-decoration-color: rgba(255, 255, 255, .6);
}

/* Primary submit button */
.btn-main {
    width: 100%;
    padding: .75rem 1.2rem;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}

.btn-main:hover {
    background: var(--blue-light);
    box-shadow: 0 0 22px var(--blue-glow);
}

/* Sweep-shine CTA effect */
.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%);
    transition: left .65s ease;
}

.btn-main:hover::before {
    left: 100%;
}

/* Back button */
.btn-back {
    padding: .65rem 1.2rem;
    background: transparent;
    color: var(--text-sec);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

.btn-back:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

/* Action buttons row */
.factions {
    display: flex;
    gap: .7rem;
    margin-top: .3rem;
}

.factions .btn-main {
    flex: 1;
}

/* Newsletter prompt */
.nl-prompt {
    display: none;
    background: rgba(59, 130, 246, .1);
    border: 1px solid rgba(59, 130, 246, .3);
    border-radius: var(--radius);
    padding: 1.1rem;
    margin-top: .3rem;
    animation: nlSlideIn .4s var(--ease);
}

.nl-prompt.vis {
    display: block;
}

@keyframes nlSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    60% {
        opacity: 1;
        transform: translateY(2px);
    }

    100% {
        transform: translateY(0);
    }
}

.nl-prompt p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.6;
    margin-bottom: .9rem;
}

.nl-prompt .nl-btns {
    display: flex;
    gap: .7rem;
}

.nl-prompt .nl-btn {
    flex: 1;
    padding: .55rem .8rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    color: var(--text-sec);
    transition: all .2s;
}

.nl-prompt .nl-btn:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

/* Footer links */
.ffooter {
    margin-top: 1.3rem;
    text-align: center;
    font-size: .8rem;
    color: var(--text-dim);
}

.ffooter a {
    color: var(--blue-light);
    text-decoration: none;
    font-weight: 500;
}

.ffooter a:hover {
    text-decoration: underline;
}

/* ═══ AUTH VIEW SWITCHING ═══ */
.auth-view {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.auth-view.active {
    display: flex;
    animation: viewIn .35s var(--ease) forwards;
}

.auth-view.leaving {
    display: flex;
    animation: viewOut .28s ease-in forwards;
}

@keyframes viewIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes viewOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ═══ LOGIN / RESET FORMS ═══ */
.login-form,
.reset-form {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.login-form h2,
.reset-form h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.login-form .sub,
.reset-form .sub {
    font-size: .82rem;
    color: var(--text-sec);
    margin-bottom: 1.8rem;
}

.login-form .btn-main,
.reset-form .btn-main,
.fstep>.btn-main {
    margin-top: .5rem;
}

/* Password field with eye toggle */
.fg-password {
    position: relative;
}

.fg-password .fi {
    padding-right: 3rem;
}

.pass-toggle {
    position: absolute;
    right: .65rem;
    bottom: .55rem;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
    z-index: 2;
}

.pass-toggle:hover {
    color: var(--text-sec);
}

/* ═══ UNIFIED SUCCESS CARDS ═══ */
.success-card,
.reset-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .8rem;
    padding: 2rem 0 0;
}

.success-card.active,
.reset-success.active {
    display: flex;
    animation: viewIn .45s var(--ease) forwards;
}

.success-card h2,
.reset-success h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.success-text {
    font-size: .88rem;
    color: var(--text-sec);
    max-width: 340px;
    line-height: 1.6;
    margin-bottom: .2rem !important;
}

.success-hint {
    font-size: .76rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.6;
    margin-bottom: .6rem;
}

.success-card .btn-main,
.btn-back-to-login {
    max-width: 280px;
}

/* Animated checkmark */
.success-icon,
.reset-check {
    width: 72px;
    height: 72px;
    margin-bottom: .6rem;
}

.success-svg,
.reset-check-svg {
    width: 100%;
    height: 100%;
}

.success-circle,
.reset-check-circle {
    stroke: var(--blue);
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: checkCircle .5s .1s var(--ease) forwards;
    filter: drop-shadow(0 0 8px var(--blue-glow));
}

.success-mark,
.reset-check-mark {
    stroke: var(--blue-light);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkMark .35s .5s var(--ease) forwards;
}

@keyframes checkCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkMark {
    to {
        stroke-dashoffset: 0;
    }
}

/* ═══ RESPONSIVE ═══ */

/* Short viewport: hide logo & label to prevent overlap with planet */
@media(max-height:620px) {
    body.modal-open #mainNav {
        display: none;
    }

    .planet-label {
        display: none;
    }
}

/* Narrower desktops/tablets: hide planet label */
@media(max-width:1200px) {
    .planet-label {
        display: none;
    }
}

/* Small tablets: hide nav logo overlay, tighten form padding */
@media(max-width:1024px) {
    body.modal-open #mainNav {
        display: none;
    }

    .form-col {
        padding: 2rem 2rem;
    }
}

/* Landscape phones: hide planet, stretch form (narrow+short = phone landscape) */
@media(max-height:500px) and (max-width:960px) {
    .planet-col {
        display: none;
    }

    .form-col {
        min-width: unset;
        max-width: unset;
        flex: 1;
        width: 100%;
        border-left: none;
        padding: 1rem 2rem;
        padding-top: 0;
        align-items: stretch;
        justify-content: flex-start;
        overflow-x: hidden;
    }

    .form-col-inner {
        max-width: unset;
    }

    .auth-view {
        justify-content: flex-start;
        overflow-y: auto;
    }

    .auth-close {
        top: .4rem;
        right: .8rem;
        width: 34px;
        height: 34px;
    }

    .fi,
    select.fi {
        font-size: 16px;
    }
}

/* Phones: hide planet entirely, form takes full width */
@media(max-width:640px) {
    .planet-col {
        display: none;
    }

    .form-col {
        min-width: unset;
        max-width: unset;
        flex: 1;
        width: 100%;
        border-left: none;
        padding: 1rem 1.5rem;
        padding-top: 0;
        align-items: stretch;
        justify-content: flex-start;
        overflow-x: hidden;
    }

    .form-col-inner {
        max-width: unset;
    }

    /* Auth view: top-align on mobile */
    .auth-view {
        justify-content: flex-start;
        overflow-y: auto;
    }

    /* Progress bar: full-width top row, same line as close */
    .progress {
        margin: 0 -1.5rem .6rem;
        padding: .75rem 4rem .75rem 1.5rem;
        justify-content: center;
    }

    /* Login/Reset: top padding to match registration's progress bar height */
    #viewLogin .form-col-inner,
    #viewReset .form-col-inner {
        padding-top: 3.5rem;
    }

    .prog-ring {
        width: 30px;
        height: 30px;
    }

    .prog-num {
        font-size: .6rem;
    }

    .prog-label {
        font-size: .6rem;
    }

    .prog-line {
        flex: 1;
        max-width: 80px;
    }

    /* Close button: top-right, same row height as progress */
    .auth-close {
        top: .45rem;
        right: .8rem;
        width: 34px;
        height: 34px;
    }

    /* Prevent iOS auto-zoom on input focus */
    .fi,
    select.fi {
        font-size: 16px;
    }

    .factions {
        flex-direction: column-reverse;
    }

    .factions .btn-back {
        width: 100%;
    }

    .nl-prompt .nl-btns {
        flex-direction: column;
    }
}