/* A2ZLuck authentication — layout / surface only (typography → design-system.css) */
:root {
    --neon-bg: #0f172a;
    --neon-bg-deep: #0b1120;
    --neon-green: #22c55e;
    --neon-green-dim: rgba(34, 197, 94, 0.35);
    --neon-green-soft: rgba(34, 197, 94, 0.14);
    --neon-muted: #94a3b8;
    --neon-text: #f8fafc;
    --neon-card-border: rgba(129, 140, 248, 0.42);
}

* { box-sizing: border-box; }

body.neon-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 197, 94, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(56, 189, 248, 0.05), transparent 50%),
        var(--neon-bg);
    color: var(--neon-text);
}

.auth-page-wrap { animation: authFadeIn .45s ease-out both; }
.auth-shell-enter { animation: authShellUp .5s ease-out both; }
.neon-shell {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
}

.neon-brand {
    display: block;
    margin: 0 0 .9rem;
    color: var(--neon-text);
    text-align: center;
}

.neon-brand-mark span { color: var(--neon-green); }

/* Centered card layout — login + register */
.auth-page .auth-page-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 0.5rem);
    min-height: calc(100dvh - 0.5rem);
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
}

/* Longer register form: start near top so fields stay reachable */
.register-page .auth-page-wrap {
    align-items: flex-start;
    padding-top: 1.25rem !important;
}

.auth-card {
    padding: 1.75rem 1.45rem 1.4rem;
    border: 1px solid var(--neon-card-border);
    border-radius: 1.15rem;
    background: var(--neon-bg-deep);
    box-shadow:
        0 0 0 1px rgba(129, 140, 248, 0.08),
        0 20px 48px rgba(0, 0, 0, 0.35);
}

.auth-copy {
    padding: 0;
    margin: 0 0 1.55rem;
    border: 0;
    background: none;
    box-shadow: none;
    text-align: left;
}

.auth-eyebrow {
    margin: 0 0 .45rem;
    color: var(--neon-green);
}

.auth-copy h1 {
    margin: 0;
    color: #fff;
}
#login-heading{
    text-align: center;
}
.auth-copy p:last-child {
    margin: .4rem 0 0;
    color: var(--neon-muted);
}

.auth-form { display: grid; gap: 0; }

.neon-form-group { margin-bottom: 1.15rem !important; }
.neon-field { position: relative; }

.neon-field-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #cbd5e1;
    pointer-events: none;
    font-size: 1.1rem;
    line-height: 1;
    transition: color .2s ease;
}

.neon-input {
    width: 100%;
    min-height: 2.85rem;
    padding: .65rem 2.4rem .7rem 2rem;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    transition: border-color .2s ease, color .2s ease;
}

.neon-input::placeholder { color: #94a3b8; }

.neon-input:focus {
    outline: 0;
    border-color: transparent;
    border-bottom-color: var(--neon-green);
    background: transparent;
    box-shadow: none;
}

.neon-field:focus-within .neon-field-icon { color: var(--neon-green); }

.neon-field-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -.15rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: .55rem;
    padding: .35rem;
    color: #cbd5e1;
    background: transparent;
    transition: color .15s ease;
}

.neon-field-toggle:hover,
.neon-field-toggle:focus-visible {
    color: var(--neon-green);
    background: transparent;
    outline: 0;
}

.neon-form-label {
    display: block;
    margin-bottom: .4rem;
    color: var(--neon-muted);
}

.auth-field-hint {
    margin: -.65rem 0 .85rem;
    min-height: 1.1rem;
    color: var(--neon-muted);
}

/* CAPTCHA */
.auth-captcha {
    position: relative;
    margin: .15rem 0 1.1rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.auth-captcha-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-captcha-challenge {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .85rem;
    padding: .7rem .9rem;
    border: 0;
    border-radius: .85rem;
    background: #111827;
}

.auth-captcha-challenge img {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 40px;
    border: 0;
    border-radius: .35rem;
    background: transparent;
    object-fit: contain;
    object-position: left center;
    filter: saturate(1.15) brightness(1.05);
}

.auth-captcha-refresh {
    display: inline-grid;
    place-items: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: .25rem;
    border: 0;
    border-radius: .5rem;
    color: #e2e8f0;
    background: transparent;
    flex-shrink: 0;
    transition: color .15s ease;
}

.auth-captcha-refresh span { display: none; }
.auth-captcha-refresh i { font-size: 1.2rem; line-height: 1; }

.auth-captcha-refresh:hover,
.auth-captcha-refresh:focus-visible {
    color: var(--neon-green);
    background: transparent;
    outline: 0;
}

.auth-captcha .neon-field-icon { display: none; }
.auth-captcha .neon-input {
    padding-left: 0;
    padding-right: 0;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem .85rem;
    margin: .15rem 0 1.35rem;
}

.auth-options a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color .15s ease;
}

.auth-options a:hover {
    color: var(--neon-green);
    text-decoration: none;
}

.auth-check {
    display: inline-flex;
    align-items: flex-start;
    gap: .6rem;
    color: #e2e8f0;
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 1.05rem;
    height: 1.05rem;
    margin: .1rem 0 0;
    flex-shrink: 0;
    accent-color: var(--neon-green);
    border-radius: .2rem;
}

.auth-check a {
    color: var(--neon-green);
    text-decoration: none;
}

.auth-check a:hover { text-decoration: underline; }

.auth-terms {
    margin: .15rem 0 1.15rem;
}

.btn-neon-primary {
    display: block;
    width: 50%;
    min-height: 2.85rem;
    margin: .05rem auto 0;
    border: 0;
    border-radius: 999px;
    color: #07111f;
    background: var(--neon-green);
    box-shadow: 0 0 22px rgba(34, 197, 94, .4), 0 8px 20px rgba(34, 197, 94, .22);
    text-align: center;
    transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}

.btn-neon-primary:hover {
    filter: brightness(1.07);
    box-shadow: 0 0 28px rgba(34, 197, 94, .48), 0 10px 24px rgba(34, 197, 94, .28);
}

.btn-neon-primary:focus-visible {
    outline: 3px solid var(--neon-green-dim);
    outline-offset: 3px;
}

.btn-neon-primary:active { transform: scale(.985); }
.btn-neon-primary:disabled {
    cursor: not-allowed;
    opacity: .75;
    filter: none;
}

.neon-auth-switch {
    margin: 1.15rem 0 0;
    color: var(--neon-muted);
    text-align: center;
}

.neon-auth-switch a {
    color: var(--neon-green);
    text-decoration: none;
}

.neon-auth-switch a:hover { text-decoration: underline; }

.neon-footer {
    margin: 1.35rem 0 0;
    padding-top: .1rem;
    color: #e2e8f0;
    text-align: center;
}

.neon-footer a {
    color: var(--neon-green);
    text-decoration: none;
}

.neon-footer a:hover { text-decoration: underline; }

@keyframes authFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes authShellUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 768px) {
    .auth-page .auth-page-wrap {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .neon-shell { max-width: 420px; }

    .auth-card {
        padding: 2rem 1.75rem 1.55rem;
        border-radius: 1.25rem;
    }
}

@media (max-width: 380px) {
    .auth-card {
        padding: 1.4rem 1.1rem 1.15rem;
        border-radius: 1rem;
    }

    .auth-options { gap: .5rem; }

    .btn-neon-primary { width: 70%; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page-wrap,
    .auth-shell-enter { animation: none; }

    * { scroll-behavior: auto !important; }
}
