:root{
    --au-bg:#0a1f13;
    --au-card:#0d2818;
    --au-card2:#102e1b;
    --au-border:#1b4329;
    --au-brand:#00ff66;
    --au-brand-2:#00e676;
    --au-heading:#ffffff;
    --au-muted:#a0b3a6;
    --au-darktext:#05140a;
}

*{ box-sizing:border-box; }

body.auth-page{
    margin:0;
    min-height:100vh;
    background:var(--au-bg);
    color:var(--au-heading);
    font-family:'Inter','Poppins',sans-serif;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
    position:relative;
}

body.auth-page::before{
    content:'';
    position:fixed;
    inset:0;
    z-index:-2;
    pointer-events:none;
    background:
        radial-gradient(700px 460px at 12% -6%, rgba(0,255,102,.16), transparent 62%),
        radial-gradient(800px 520px at 105% 112%, rgba(0,255,102,.12), transparent 62%),
        radial-gradient(480px 340px at 82% 4%, rgba(0,230,118,.09), transparent 60%),
        var(--au-bg);
}

body.auth-page::after{
    content:'';
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    opacity:.4;
    background-image:
        linear-gradient(rgba(0,255,102,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,102,.05) 1px, transparent 1px);
    background-size:46px 46px;
}

.auth-topbar{
    position:fixed;
    top:0; left:0; right:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 28px;
    z-index:10;
}

.auth-brand{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#ffffff;
    font-weight:700;
    font-size:1.08rem;
    letter-spacing:.2px;
}

.auth-brand img{ height:34px; width:34px; object-fit:contain; border-radius:8px; }

.auth-brand em{ font-style:normal; color:var(--au-brand); }

.auth-home-link{
    color:var(--au-muted);
    text-decoration:none;
    font-size:.85rem;
    font-weight:600;
    transition:color .2s;
}

.auth-home-link:hover{ color:var(--au-brand); }

.auth-wrap{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:96px 20px 70px;
}

.auth-card{
    width:100%;
    max-width:452px;
    background:linear-gradient(180deg, var(--au-card2), var(--au-card) 55%);
    border:1px solid var(--au-border);
    border-radius:22px;
    padding:38px 34px 30px;
    box-shadow:
        0 30px 60px -22px rgba(0,0,0,.6),
        0 0 70px -24px rgba(0,255,102,.4);
    position:relative;
    overflow:hidden;
    animation:authIn .55s cubic-bezier(.22,.68,.36,1) both;
}

.auth-card::before{
    content:'';
    position:absolute;
    top:0; left:0; right:0;
    height:3px;
    background:linear-gradient(90deg, transparent, #00ff66, #00e676, transparent);
}

.auth-logo{ display:flex; justify-content:center; margin-bottom:14px; }

.auth-logo img{
    height:68px;
    width:68px;
    object-fit:contain;
    filter:drop-shadow(0 8px 20px rgba(0,255,102,.35));
}

.auth-title{
    margin:0;
    text-align:center;
    font-size:1.55rem;
    font-weight:800;
    color:#ffffff;
    letter-spacing:.2px;
}

.auth-title span{ color:var(--au-brand); }

.auth-sub{
    text-align:center;
    color:var(--au-muted);
    font-size:.9rem;
    margin:8px 0 22px;
}

.auth-alert{
    border:1px solid rgba(255,197,66,.35);
    background:rgba(255,197,66,.10);
    color:#ffd97a;
    border-radius:12px;
    padding:12px 14px;
    font-size:.85rem;
    margin-bottom:16px;
}

.auth-alert.auth-alert-success{
    border-color:rgba(0,255,102,.4);
    background:rgba(0,255,102,.08);
    color:#7cf0ae;
}

.auth-alert .alert{
    border:none;
    background:transparent;
    padding:0;
    margin:0;
    color:inherit;
}

.auth-form-error{
    display:block;
    color:#ff8a8f;
    font-size:.83rem;
    margin:0 0 14px;
}

.auth-field{ margin-bottom:16px; }

.auth-label{
    display:block;
    margin-bottom:7px;
    font-size:.84rem;
    color:#cfe6d8;
    font-weight:600;
}

.auth-input-wrap{ position:relative; }

.auth-input-wrap > .fa-solid{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#5f7d6c;
    font-size:.95rem;
    transition:color .2s;
    pointer-events:none;
}

.auth-input-wrap:focus-within > .fa-solid{ color:var(--au-brand); }

.auth-input{
    width:100%;
    background:#0a1f13;
    border:1px solid var(--au-border);
    color:#ffffff;
    padding:13px 44px 13px 40px;
    border-radius:12px;
    font-size:.95rem;
    font-family:inherit;
    transition:border-color .22s, box-shadow .22s;
    outline:none;
}

.auth-input::placeholder{ color:#5f7d6c; }

.auth-input:focus{
    border-color:var(--au-brand);
    box-shadow:0 0 0 3px rgba(0,255,102,.16);
}

.auth-eye{
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    background:none;
    border:none;
    color:#5f7d6c;
    cursor:pointer;
    padding:8px;
    font-size:.95rem;
    transition:color .2s;
}

.auth-eye:hover{ color:var(--au-brand); }

.auth-field-error{
    display:block;
    margin-top:6px;
    font-size:.8rem;
    color:#ff8a8f;
}

.auth-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:4px 0 20px;
}

.auth-check{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:.86rem;
    color:var(--au-muted);
    cursor:pointer;
    user-select:none;
}

.auth-check input{
    width:16px;
    height:16px;
    accent-color:var(--au-brand);
    cursor:pointer;
}

.auth-forgot{
    color:var(--au-brand);
    text-decoration:none;
    font-size:.86rem;
    font-weight:600;
    white-space:nowrap;
}

.auth-forgot:hover{ text-decoration:underline; }

.auth-btn{
    display:block;
    width:100%;
    padding:14px 16px;
    border-radius:12px;
    border:none;
    cursor:pointer;
    background:linear-gradient(135deg, #00ff66, #00e676);
    color:var(--au-darktext);
    font-weight:800;
    font-size:1rem;
    font-family:inherit;
    letter-spacing:.03em;
    text-align:center;
    transition:transform .22s, box-shadow .22s, filter .22s;
    box-shadow:0 8px 24px -8px rgba(0,255,102,.55);
}

.auth-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 32px -8px rgba(0,255,102,.68);
    filter:brightness(1.06);
}

.auth-btn:active{ transform:translateY(0); }

.auth-alt{
    text-align:center;
    margin:20px 0 0;
    font-size:.9rem;
    color:var(--au-muted);
}

.auth-alt a{
    color:var(--au-brand);
    font-weight:700;
    text-decoration:none;
}

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

.auth-divider{
    display:flex;
    align-items:center;
    gap:12px;
    margin:22px 0;
    color:var(--au-muted);
    font-size:.74rem;
    text-transform:uppercase;
    letter-spacing:.09em;
}

.auth-divider::before, .auth-divider::after{
    content:'';
    flex:1;
    height:1px;
    background:var(--au-border);
}

.auth-social{ display:grid; gap:10px; }

.auth-social-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
    padding:12px 16px;
    border-radius:12px;
    border:1px solid var(--au-border);
    background:rgba(255,255,255,.02);
    color:#eaf7ee;
    font-weight:600;
    font-size:.92rem;
    font-family:inherit;
    text-decoration:none;
    transition:border-color .22s, background .22s, box-shadow .22s, transform .22s;
}

.auth-social-btn img{ height:20px; width:20px; }

.auth-social-btn:hover{
    border-color:rgba(0,255,102,.55);
    background:rgba(0,255,102,.06);
    box-shadow:0 0 0 3px rgba(0,255,102,.12);
    transform:translateY(-1px);
}

.auth-terms{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:4px 0 20px;
    font-size:.85rem;
    color:var(--au-muted);
}

.auth-terms input{
    width:17px;
    height:17px;
    margin-top:1px;
    accent-color:var(--au-brand);
    cursor:pointer;
    flex:none;
}

.auth-terms a{
    color:var(--au-brand);
    text-decoration:none;
    font-weight:600;
}

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

.auth-foot{
    position:fixed;
    left:0; right:0; bottom:0;
    display:flex;
    justify-content:center;
    gap:16px;
    padding:16px;
    font-size:.78rem;
    color:var(--au-muted);
    z-index:10;
    background:linear-gradient(transparent, rgba(10,31,19,.9));
}

.auth-foot a{ color:var(--au-muted); text-decoration:none; transition:color .2s; }
.auth-foot a:hover{ color:var(--au-brand); }

.alert{
    border:1px solid rgba(255,197,66,.35);
    background:rgba(255,197,66,.10);
    color:#ffd97a;
    border-radius:10px;
    padding:11px 14px;
    font-size:.85rem;
    margin-bottom:12px;
}

.alert + .alert{ margin-top:8px; }

.text-green-600{ color:#34d399; }
.text-error{ color:#ff6b6b; }
.text-tiny\+{ font-size:.78rem; }

@keyframes authIn{
    from{ opacity:0; transform:translateY(16px); }
    to{ opacity:1; transform:translateY(0); }
}

@media (max-width:520px){
    .auth-topbar{ padding:14px 18px; }
    .auth-card{ padding:30px 22px 24px; border-radius:18px; }
    .auth-wrap{ padding:84px 16px 64px; }
}

@media (prefers-reduced-motion: reduce){
    .auth-card{ animation:none; }
    *{ transition:none !important; }
}