/**
 * Fotoshopcu Auth — modern full-screen dark + yellow UI.
 */

body.fsa-auth-fullscreen {
    margin: 0;
    padding: 0 !important;
    overflow-x: hidden;
    background: #050505;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.fsa-auth {
    --fsa-primary: #fcd307;
    --fsa-primary-dark: #d4b106;
    --fsa-primary-light: #fde047;
    --fsa-primary-glow: rgba(252, 211, 7, 0.4);
    --fsa-bg: #050505;
    --fsa-surface: rgba(15, 15, 15, 0.72);
    --fsa-surface-solid: #111111;
    --fsa-border: rgba(255, 255, 255, 0.08);
    --fsa-border-focus: rgba(252, 211, 7, 0.55);
    --fsa-text: #fafafa;
    --fsa-text-muted: #a1a1aa;
    --fsa-text-dim: #71717a;
    --fsa-error: #f87171;
    --fsa-success: #34d399;
    --fsa-radius: 1rem;
    --fsa-radius-lg: 1.375rem;
    --fsa-brand-size: 32px;
    --fsa-brand-font-size: 1.0625rem;
    --fsa-page-gutter: clamp(1.25rem, 5vw, 4rem);
    --fsa-column-gap: clamp(2rem, 4vw, 3rem);
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--fsa-text);
    isolation: isolate;
}

@media (min-width: 640px) {
    .fsa-auth {
        --fsa-brand-size: 36px;
        --fsa-brand-font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .fsa-auth {
        --fsa-brand-size: 44px;
        --fsa-brand-font-size: var(--fsa-brand-size);
    }
}

/* ── Ambient background ── */
.fsa-auth__ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--fsa-bg);
    pointer-events: none;
}

.fsa-auth__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(252, 211, 7, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 70%, rgba(252, 211, 7, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(252, 211, 7, 0.04) 0%, transparent 45%);
}

.fsa-auth__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.fsa-auth__orb--1 {
    width: 520px;
    height: 520px;
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(252, 211, 7, 0.22) 0%, transparent 68%);
    animation: fsa-float-1 18s ease-in-out infinite;
}

.fsa-auth__orb--2 {
    width: 400px;
    height: 400px;
    bottom: -5%;
    right: 20%;
    background: radial-gradient(circle, rgba(252, 211, 7, 0.12) 0%, transparent 70%);
    animation: fsa-float-2 22s ease-in-out infinite;
}

.fsa-auth__orb--3 {
    width: 280px;
    height: 280px;
    top: 40%;
    left: 45%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    animation: fsa-float-3 15s ease-in-out infinite;
}

.fsa-auth__noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

.fsa-auth__scanline {
    display: none;
}

@keyframes fsa-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, 20px) scale(1.05); }
    66% { transform: translate(-15px, 35px) scale(0.97); }
}

@keyframes fsa-float-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, -25px); }
}

@keyframes fsa-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.1); }
}

/* ── Layout ── */
.fsa-auth__layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-inline: var(--fsa-page-gutter);
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .fsa-auth__layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        align-items: center;
        min-height: 100dvh;
        column-gap: var(--fsa-column-gap);
    }
}

/* ── Reveal animation ── */
.fsa-auth__reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: fsa-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--fsa-delay, 0ms);
}

@keyframes fsa-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero ── */
.fsa-auth__hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    flex-shrink: 0;
    padding: 1.75rem 0 1.25rem;
    overflow: visible;
    background: transparent;
}

@media (min-width: 1024px) {
    .fsa-auth__hero {
        padding: clamp(2rem, 4vh, 3rem) 0;
        min-height: 0;
        max-height: none;
        justify-content: center;
        overflow: visible;
    }
}

.fsa-auth__hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

@media (min-width: 1024px) {
    .fsa-auth__hero-inner {
        max-height: 100%;
    }
}

/* Aurora & ambient effects */
.fsa-auth__hero-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    mix-blend-mode: screen;
}

.fsa-auth__hero-aurora--1 {
    width: 55%;
    height: 45%;
    top: -10%;
    left: -15%;
    background: radial-gradient(circle, rgba(252, 211, 7, 0.45) 0%, transparent 70%);
    animation: fsa-aurora-1 12s ease-in-out infinite;
}

.fsa-auth__hero-aurora--2 {
    width: 50%;
    height: 40%;
    bottom: 5%;
    left: 20%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.28) 0%, transparent 68%);
    animation: fsa-aurora-2 16s ease-in-out infinite;
}

.fsa-auth__hero-aurora--3 {
    width: 35%;
    height: 35%;
    top: 35%;
    right: -5%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation: fsa-aurora-3 10s ease-in-out infinite;
}

@keyframes fsa-aurora-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8%, 12%) scale(1.15); }
}

@keyframes fsa-aurora-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10%, -8%) rotate(8deg); }
}

@keyframes fsa-aurora-3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.55; }
    50% { transform: translate(-15%, 10%); opacity: 0.75; }
}

.fsa-auth__hero-beam,
.fsa-auth__hero-grid {
    display: none !important;
}

.fsa-auth__hero-shimmer {
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(252, 211, 7, 0.04) 60deg,
        rgba(255, 255, 255, 0.06) 120deg,
        rgba(252, 211, 7, 0.04) 180deg,
        transparent 240deg
    );
    animation: fsa-shimmer-rotate 14s linear infinite;
}

@keyframes fsa-shimmer-rotate {
    to { transform: rotate(360deg); }
}

.fsa-auth__hero-sparkles {
    position: absolute;
    inset: 0;
}

.fsa-auth__sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fsa-primary-light);
    box-shadow: 0 0 8px 2px rgba(252, 211, 7, 0.6);
    opacity: 0;
    animation: fsa-sparkle 4s ease-in-out infinite;
    animation-delay: calc(var(--fsa-i) * 0.55s);
}

@keyframes fsa-sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

.fsa-auth__hero-mouse-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 211, 7, 0.18) 0%, transparent 70%);
    filter: blur(40px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .fsa-auth__hero-mouse-glow.is-active {
        opacity: 1;
    }
}

.fsa-auth__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    height: var(--fsa-brand-size);
    text-decoration: none;
    color: var(--fsa-text);
    font-weight: 800;
    margin-bottom: 1.75rem;
    transition: opacity 0.2s;
}

@media (min-width: 1024px) {
    .fsa-auth__brand {
        margin-bottom: clamp(1rem, 2.5vh, 1.75rem);
    }
}

.fsa-auth__brand-text {
    display: flex;
    align-items: center;
    height: var(--fsa-brand-size);
    min-width: 0;
    line-height: 1.15;
    font-size: var(--fsa-brand-font-size);
    font-weight: 800;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fsa-auth__brand:hover {
    opacity: 0.8;
}

.fsa-auth__brand--compact {
    --fsa-brand-size: 36px;
    margin-bottom: 0;
}

.fsa-auth__brand-logo {
    width: var(--fsa-brand-size);
    height: var(--fsa-brand-size);
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--fsa-border);
}

.fsa-auth__brand--compact .fsa-auth__brand-logo {
    border-radius: 10px;
}

.fsa-auth__brand-mark {
    display: inline-flex;
    width: var(--fsa-brand-size);
    height: var(--fsa-brand-size);
    flex-shrink: 0;
}

.fsa-auth__brand-mark[hidden] + .fsa-auth__brand-fallback,
.fsa-auth__brand-mark[hidden] ~ .fsa-auth__brand-fallback {
    display: inline-flex;
}

.fsa-auth__brand-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--fsa-brand-size);
    height: var(--fsa-brand-size);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--fsa-primary), var(--fsa-primary-dark));
    color: #000;
    box-shadow: 0 4px 20px rgba(252, 211, 7, 0.25);
    flex-shrink: 0;
}

.fsa-auth__brand--compact .fsa-auth__brand-fallback {
    border-radius: 10px;
}

.fsa-auth__brand-mark:not([hidden]) ~ .fsa-auth__brand-fallback {
    display: none;
}

.fsa-auth__hero-title {
    margin: 0;
    color: #ffffff !important;
    letter-spacing: -0.02em;
    /* landing-hero: text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-extrabold leading-tight */
    font-size: 2.25rem;
    line-height: 1.25;
    font-weight: 800;
}

@media (min-width: 640px) {
    .fsa-auth__hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .fsa-auth__hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .fsa-auth__hero-title {
        font-size: 4.5rem;
    }
}

.fsa-auth__gradient-text {
    display: inline;
    white-space: normal;
    background: linear-gradient(
        110deg,
        var(--fsa-primary-light) 0%,
        #fff9c4 25%,
        var(--fsa-primary) 50%,
        var(--fsa-primary-dark) 75%,
        var(--fsa-primary-light) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fsa-text-shine 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(252, 211, 7, 0.2));
}

@keyframes fsa-text-shine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.fsa-auth__hero-lead {
    margin: 0;
    color: #d1d5db !important;
    /* landing-hero: text-lg sm:text-xl leading-relaxed */
    font-size: 1.125rem;
    line-height: 1.625;
}

@media (min-width: 640px) {
    .fsa-auth__hero-lead {
        font-size: 1.25rem;
    }
}

.fsa-auth__highlights {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fsa-auth__highlight-item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.75rem 0.35rem;
    border-radius: 0.875rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.07);
    border: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    animation: fsa-highlight-pulse 4s ease-in-out infinite;
    animation-delay: calc(var(--fsa-i, 0) * 0.6s);
}

.fsa-auth__highlight-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 0.625rem;
    background: rgba(252, 211, 7, 0.1);
    border: none;
    color: var(--fsa-primary);
}

.fsa-auth__highlight-text {
    position: relative;
    z-index: 1;
    width: 100%;
}

.fsa-auth__highlight-text strong {
    display: block;
    color: #fafafa;
    line-height: 1.25;
    font-size: 0.75rem;
    font-weight: 700;
}

.fsa-auth__highlight-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(252, 211, 7, 0.08) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    animation: fsa-highlight-shine 5s ease-in-out infinite;
    animation-delay: calc(var(--fsa-i, 0) * 0.8s + 1s);
}

@keyframes fsa-highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(252, 211, 7, 0);
        background: rgba(255, 255, 255, 0.07);
    }
    50% {
        box-shadow: 0 0 20px rgba(252, 211, 7, 0.08);
        background: rgba(255, 255, 255, 0.1);
    }
}

@keyframes fsa-highlight-shine {
    0% { transform: translateX(-100%); }
    30%, 100% { transform: translateX(100%); }
}

@media (min-width: 1024px) {
    .fsa-auth__highlight-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.625rem 0.75rem;
        text-align: left;
    }

    .fsa-auth__highlight-text {
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .fsa-auth__highlight-text strong {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .fsa-auth__highlight-item:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.12);
        box-shadow: 0 4px 24px rgba(252, 211, 7, 0.12);
    }

    .fsa-auth__highlight-item:hover .fsa-auth__highlight-icon {
        background: rgba(252, 211, 7, 0.16);
    }
}

/* ── Panel (unified with hero) ── */
.fsa-auth__panel {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1;
    padding: 0 0 2rem;
    background: transparent;
}

@media (min-width: 1024px) {
    .fsa-auth__panel {
        align-items: center;
        justify-content: flex-start;
        flex: unset;
        padding: clamp(2rem, 4vh, 3rem) 0;
        min-height: 0;
        border-left: none;
    }
}

.fsa-auth__panel-inner {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 1.75rem 1.5rem;
    border-radius: var(--fsa-radius-lg);
    background: linear-gradient(
        165deg,
        rgba(24, 24, 24, 0.96) 0%,
        rgba(10, 10, 10, 0.94) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 20px 40px -12px rgba(0, 0, 0, 0.75),
        0 0 80px -16px rgba(252, 211, 7, 0.22);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    overflow: hidden;
}

.fsa-auth__panel-inner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 211, 7, 0.14) 0%, transparent 68%);
    pointer-events: none;
}

.fsa-auth__panel-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(252, 211, 7, 0.06) 0%,
        transparent 28%
    );
    pointer-events: none;
}

@media (min-width: 480px) {
    .fsa-auth__panel-inner {
        padding: 2rem 1.75rem;
    }
}

.fsa-auth__form-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.fsa-auth__mobile-brand {
    display: none;
}

/* Legacy card selectors — kept transparent for compatibility */
.fsa-auth__card {
    position: relative;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.fsa-auth__card::before,
.fsa-auth__card-glow {
    display: none !important;
}

/* ── Progress ── */
.fsa-auth__progress {
    margin-bottom: 1.75rem;
}

.fsa-auth__progress-track {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 0.875rem;
}

.fsa-auth__progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--fsa-primary-dark), var(--fsa-primary), var(--fsa-primary-light));
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 12px var(--fsa-primary-glow);
}

.fsa-auth__progress-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fsa-auth__progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fsa-text-dim);
    font-size: 0.8125rem;
    transition: color 0.3s;
}

.fsa-auth__progress-step.is-active,
.fsa-auth__progress-step.is-done {
    color: var(--fsa-text-muted);
}

.fsa-auth__progress-step.is-active .fsa-auth__progress-num,
.fsa-auth__progress-step.is-done .fsa-auth__progress-num {
    background: var(--fsa-primary);
    color: #000;
    border-color: var(--fsa-primary);
    box-shadow: 0 0 12px var(--fsa-primary-glow);
}

.fsa-auth__progress-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1px solid var(--fsa-border);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.6875rem;
    font-weight: 700;
    transition: all 0.3s;
}

.fsa-auth__progress-label {
    font-weight: 500;
}

/* ── Header ── */
.fsa-auth__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: center;
}

.fsa-auth__header .fsa-auth__back {
    align-self: flex-start;
}

.fsa-auth__header .fsa-auth__email-badge {
    margin-top: 0.625rem;
}

.fsa-auth__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 0 1.125rem;
    border-radius: 1rem;
    background: rgba(252, 211, 7, 0.1);
    border: 1px solid rgba(252, 211, 7, 0.2);
    color: var(--fsa-primary);
}

.fsa-auth__avatar--site {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none;
}

.fsa-auth__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.fsa-auth__avatar--user {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, var(--fsa-primary-light), var(--fsa-primary));
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fsa-auth__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: var(--fsa-text-muted);
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.fsa-auth__back:hover {
    color: var(--fsa-primary);
    background: rgba(252, 211, 7, 0.05);
}

.fsa-auth__title {
    margin: 0 0 0.4rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.fsa-auth__subtitle {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--fsa-text-muted);
    line-height: 1.5;
}

.fsa-auth__email-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.875rem;
    padding: 0.4rem 0.875rem;
    border-radius: 9999px;
    background: rgba(252, 211, 7, 0.08);
    border: none;
    color: var(--fsa-primary-light);
    font-size: 0.8125rem;
    font-weight: 500;
}

.fsa-auth__email-badge-icon {
    flex-shrink: 0;
    color: var(--fsa-primary);
}

/* ── Form ── */
.fsa-auth__form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.fsa-auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.fsa-auth__input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.fsa-auth__input-group--pw .fsa-auth__input {
    padding-right: 2.75rem;
}

.fsa-auth__input-icon {
    position: absolute;
    left: 1rem;
    z-index: 1;
    display: flex;
    color: var(--fsa-text-dim);
    pointer-events: none;
    transition: color 0.2s;
}

.fsa-auth__input-group:focus-within .fsa-auth__input-icon {
    color: var(--fsa-primary);
}

.fsa-auth__input {
    width: 100%;
    padding: 1.125rem 1rem 0.5rem 2.75rem;
    border-radius: var(--fsa-radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.45);
    color: var(--fsa-text);
    font-size: 0.9375rem;
    font-family: inherit;
    text-transform: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fsa-auth__float-label {
    position: absolute;
    left: 2.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    color: var(--fsa-text-dim);
    pointer-events: none;
    transition: top 0.2s, transform 0.2s, font-size 0.2s, color 0.2s;
}

.fsa-auth__input:focus,
.fsa-auth__input:not(:placeholder-shown) {
    padding-top: 1.25rem;
    padding-bottom: 0.375rem;
}

.fsa-auth__input:focus ~ .fsa-auth__float-label,
.fsa-auth__input:not(:placeholder-shown) ~ .fsa-auth__float-label {
    top: 0.65rem;
    transform: translateY(0);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--fsa-primary);
    letter-spacing: 0.02em;
    text-transform: none;
}

.fsa-auth__input:focus {
    outline: none;
    border-color: var(--fsa-border-focus);
    background: rgba(0, 0, 0, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 3px rgba(252, 211, 7, 0.12),
        0 0 24px rgba(252, 211, 7, 0.06);
}

.fsa-auth__input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fsa-auth__toggle-pw {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border: none;
    background: none;
    color: var(--fsa-text-dim);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.2s, background 0.2s;
}

.fsa-auth__toggle-pw:hover {
    color: var(--fsa-primary);
    background: rgba(252, 211, 7, 0.08);
}

.fsa-auth__toggle-pw .fsa-auth__eye-closed {
    display: none;
}

.fsa-auth__toggle-pw.is-password-hidden .fsa-auth__eye-open {
    display: none;
}

.fsa-auth__toggle-pw.is-password-hidden .fsa-auth__eye-closed {
    display: block;
}

.fsa-auth__hint {
    margin: 0;
    padding-left: 0.25rem;
    font-size: 0.75rem;
    color: var(--fsa-text-dim);
}

/* Custom checkbox */
.fsa-auth__checkbox {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--fsa-text-muted);
    cursor: pointer;
    user-select: none;
}

.fsa-auth__checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fsa-auth__checkbox-box {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.3rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
}

.fsa-auth__checkbox input:checked + .fsa-auth__checkbox-box {
    background: var(--fsa-primary);
    border-color: var(--fsa-primary);
}

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

.fsa-auth__checkbox input:focus-visible + .fsa-auth__checkbox-box {
    box-shadow: 0 0 0 3px rgba(252, 211, 7, 0.2);
}

/* Password strength */
.fsa-auth__strength {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.25rem;
}

.fsa-auth__strength[aria-hidden="true"] {
    visibility: hidden;
}

.fsa-auth__strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.fsa-auth__strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}

.fsa-auth__strength-bar span[data-strength="weak"] {
    width: 33%;
    background: #ef4444;
}

.fsa-auth__strength-bar span[data-strength="medium"] {
    width: 66%;
    background: #f59e0b;
}

.fsa-auth__strength-bar span[data-strength="strong"] {
    width: 100%;
    background: var(--fsa-success);
}

.fsa-auth__strength-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--fsa-text-dim);
    min-width: 3.5rem;
    text-align: right;
}

/* ── Button ── */
.fsa-auth__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9375rem 1.5rem;
    border: none;
    border-radius: var(--fsa-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fsa-auth__btn--primary {
    background: linear-gradient(135deg, var(--fsa-primary-light) 0%, var(--fsa-primary) 50%, var(--fsa-primary-dark) 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(252, 211, 7, 0.3);
}

.fsa-auth__btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.fsa-auth__btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(252, 211, 7, 0.4);
}

.fsa-auth__btn--primary:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.fsa-auth__btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

.fsa-auth__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fsa-auth__btn-arrow {
    display: flex;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.fsa-auth__btn--primary:hover:not(:disabled) .fsa-auth__btn-arrow {
    transform: translateX(4px);
}

.fsa-auth__btn[data-fsa-submit]:disabled .fsa-auth__btn-arrow {
    display: none;
}

.fsa-auth__spinner {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-top-color: #000;
    border-radius: 50%;
    animation: fsa-spin 0.65s linear infinite;
}

@keyframes fsa-spin {
    to { transform: rotate(360deg); }
}

/* ── Alert ── */
.fsa-auth__alert {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: var(--fsa-radius);
    font-size: 0.875rem;
    line-height: 1.45;
    animation: fsa-shake 0.4s ease;
}

.fsa-auth__alert[hidden] {
    display: none !important;
}

.fsa-auth__alert[data-type="error"] {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--fsa-error);
}

.fsa-auth__alert[data-type="success"] {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--fsa-success);
}

.fsa-auth__alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

@keyframes fsa-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ── Step transitions ── */
.fsa-auth__step {
    display: none;
}

.fsa-auth__step.is-active {
    display: block;
    animation: fsa-step-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.fsa-auth__step.is-active[data-fsa-direction="back"] {
    animation: fsa-step-in-back 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fsa-step-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fsa-step-in-back {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fsa-auth__footer-note {
    position: relative;
    z-index: 1;
    margin: 1.5rem 0 0;
    text-align: left;
    font-size: 0.75rem;
    color: var(--fsa-text-dim);
    letter-spacing: 0.01em;
}

/* ── Mobile: brand on top + login form (hero marketing hidden) ── */
@media (max-width: 1023px) {
    .fsa-auth {
        --fsa-page-gutter: 1.25rem;
    }

    .fsa-auth__brand {
        gap: 0.625rem;
        margin-bottom: 1rem;
        max-width: 100%;
    }

    .fsa-auth__brand-logo,
    .fsa-auth__brand-fallback {
        border-radius: 10px;
    }

    .fsa-auth__hero {
        padding: 1rem 0 0.75rem;
    }

    /* Hide marketing copy/highlights; keep site name at top */
    .fsa-auth__hero-body {
        display: none !important;
    }

    .fsa-auth__panel {
        padding: 0 0 1.5rem;
    }

    .fsa-auth__panel-inner {
        max-width: none;
        padding: 1.375rem 1.25rem;
        border-radius: 1.125rem;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.03) inset,
            0 16px 32px -12px rgba(0, 0, 0, 0.7),
            0 0 48px -16px rgba(252, 211, 7, 0.16);
    }

    .fsa-auth__progress {
        margin-bottom: 1.375rem;
    }

    .fsa-auth__header {
        margin-bottom: 1.25rem;
    }

    .fsa-auth__avatar {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0.875rem;
        border-radius: 0.875rem;
    }

    .fsa-auth__title {
        font-size: 1.3125rem;
    }

    .fsa-auth__footer-note {
        margin-top: 1.25rem;
        text-align: center;
        font-size: 0.6875rem;
    }

    .fsa-auth__hero-sparkles {
        opacity: 0.45;
    }
}

@media (min-width: 1024px) {
    .fsa-auth__highlights {
        gap: 0.625rem;
    }

    .fsa-auth__highlight-icon {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.625rem;
    }

    .fsa-auth__highlight-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 479px) {
    .fsa-auth__panel-inner {
        padding: 1.25rem 1.125rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fsa-auth__orb,
    .fsa-auth__hero-aurora,
    .fsa-auth__hero-beam,
    .fsa-auth__hero-grid,
    .fsa-auth__hero-shimmer,
    .fsa-auth__sparkle,
    .fsa-auth__gradient-text,
    .fsa-auth__highlight-item,
    .fsa-auth__highlight-item::after,
    .fsa-auth__reveal,
    .fsa-auth__step.is-active {
        animation: none !important;
    }

    .fsa-auth__reveal {
        opacity: 1;
        transform: none;
    }
}
