:root{
    --bg:#ffffff;
    --card:#ffffff;
    --text:#111827;
    --muted:#6b7280;
    --border:#e5e7eb;
    --primary:#4f46e5;
    --sidebar:#020817;
}

body.dark-mode{
    --bg:#0b0f1a;
    --card:#161d2e;
    --text:#f3f4f6;
    --muted:#94a3b8;
    --border:#24324a;
    --primary:#6366f1;
    --sidebar:#020817;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

html,
body{
    margin:0;
    padding:0;
    min-height:100vh;
    overflow-x:hidden;
}

body{
    background:var(--bg);
    color:var(--text);
    transition:.3s;
    display:flex;
    flex-direction:column;
}

/* =========================
   MAIN LAYOUT
========================= */

.login-container{
    display:flex;
    flex:1;
    min-height:calc(100vh - 120px);
}

/* =========================
   LEFT SIDE
========================= */

.login-left{
    flex:1;
    background:#020817;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:40px;
    position:relative;
    overflow:hidden;
}

.brand{
    position:absolute;
    top:30px;
    left:40px;
    color:#fff;
    font-size:30px;
    font-weight:700;
}

.brand span{
    color:#6366f1;
}

.hero-title{
    font-size:45px;
    line-height:1.2;
    color:#fff;
    max-width:650px;
    font-weight:500;
}

.hero-title span{
    background:linear-gradient(
        90deg,
        #ff6b6b,
        #ff0080
    );
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-image{
    width:100%;
    max-width:350px;
    height:auto;
    margin-top:30px;
    object-fit:contain;
}

/* =========================
   RIGHT SIDE
========================= */

.login-right{
    width:520px;
    background:var(--card);
    border-left:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-box{
    width:100%;
    max-width:420px;
    padding:40px;
}

.login-box h2{
    font-size:32px;
    margin-bottom:10px;
    color:var(--text);
}

.login-box p{
    color:var(--muted);
    margin-bottom:25px;
}

/* =========================
   FORM
========================= */

.form-group{
    margin-bottom:16px;
}

.form-control{
    width:100%;
    padding:15px;
    border-radius:12px;
    border:1px solid var(--border);
    background:transparent;
    color:var(--text);
    font-size:15px;
}

.form-control:focus{
    outline:none;
    border-color:var(--primary);
}

.btn{
    width:100%;
    padding:15px;
    border:none;
    border-radius:12px;
    background:var(--primary);
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
}

.btn:hover{
    opacity:.95;
}

/* =========================
   ALERTS
========================= */

.error{
    background:#ef444420;
    border:1px solid #ef4444;
    color:#ef4444;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
}

.success{
    background:#22c55e20;
    border:1px solid #22c55e;
    color:#22c55e;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
}

/* =========================
   LINKS
========================= */

.links{
    margin-top:25px;
    text-align:center;
}

.links a{
    color:var(--primary);
    text-decoration:none;
}

.links a:hover{
    text-decoration:underline;
}

/* =========================
   CONSENT CHECKBOX
========================= */

.checkbox{
    display:flex;
    gap:10px;
    align-items:flex-start;
    margin:15px 0;
    font-size:14px;
    color:var(--muted);
}

.checkbox input{
    width:auto;
    margin-top:4px;
}

.checkbox a{
    color:var(--primary);
    text-decoration:none;
}

/* =========================
   CAPTCHA
========================= */

.recaptcha-wrapper{
    margin:15px 0;
    display:flex;
    justify-content:center;
}

/* =========================
   THEME BUTTON
========================= */

.theme-btn{
    position:fixed;
    top:20px;
    right:20px;
    z-index:999;
    border:none;
    border-radius:50px;
    padding:10px 18px;
    background:var(--primary);
    color:#fff;
    cursor:pointer;
}

/* =========================
   FOOTER
========================= */

.auth-footer{
    width:100%;
    padding:20px;
    background:#0b0f1a;
    border-top:1px solid #1e293b;
    margin:0;
}

.footer-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:12px;
}

.footer-links a{
    color:#94a3b8;
    text-decoration:none;
    font-size:12px;
}

.footer-links a:hover{
    color:#6366f1;
}

.footer-bottom{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
    color:#94a3b8;
    font-size:12px;
}

.footer-bottom select{
    background:transparent;
    border:none;
    color:#94a3b8;
    outline:none;
}

/* =========================
   MOBILE
========================= */

@media(max-width:992px){

    .login-left{
        display:none;
    }

    .login-right{
        width:100%;
        border-left:none;
    }

    .login-box{
        max-width:500px;
    }
}

@media(max-width:576px){

    .theme-btn{
        top:10px;
        right:10px;
        padding:8px 14px;
    }

    .login-box{
        padding:25px;
    }

    .login-box h2{
        font-size:28px;
    }

    .footer-links{
        gap:10px;
    }

    .footer-links a{
        font-size:11px;
    }

    .footer-bottom{
        flex-direction:column;
        gap:6px;
    }
}

/* =========================
   THEME TOGGLE
========================= */

.theme-toggle{
    position:fixed;
    top:20px;
    right:20px;
    z-index:999;
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 14px;
    border:2px solid var(--border);
    border-radius:50px;
    background:var(--card);
    cursor:pointer;
    user-select:none;
}

.toggle-track{
    width:42px;
    height:24px;
    background:#cbd5e1;
    border-radius:50px;
    position:relative;
    transition:.3s;
}

.toggle-thumb{
    width:18px;
    height:18px;
    background:#fff;
    border-radius:50%;
    position:absolute;
    top:3px;
    left:3px;
    transition:.3s;
    box-shadow:0 2px 5px rgba(0,0,0,.25);
}

.toggle-label{
    font-size:14px;
    font-weight:500;
    color:var(--text);
}

/* Dark Mode Active */

body.dark-mode .toggle-track{
    background:#6366f1;
}

body.dark-mode .toggle-thumb{
    transform:translateX(18px);
}

/* Mobile */

@media(max-width:576px){

    .theme-toggle{
        top:10px;
        right:10px;
        padding:6px 12px;
    }

    .toggle-label{
        font-size:13px;
    }
}
