:root{
    --primary:#6366f1;
    --secondary:#06b6d4;
    --dark:#020617;
    --card:#0f172a;
    --text:#f8fafc;
    --muted:#94a3b8;
    --danger:#ef4444;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter','Segoe UI',Arial,sans-serif;
}

body{
    min-height:100vh;
    background:var(--dark);
    overflow:hidden;
}

/* BACKGROUND VIDEO */
.bg-video{
    position:fixed;
    inset:0;
    z-index:-5;
    overflow:hidden;
}

.bg-video video{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:brightness(.95) contrast(1.02) saturate(1.03);
    transform:none;
}

/* ONLY LIGHT OVERLAY - VIDEO 95% VISIBLE */
.bg-overlay{
    position:fixed;
    inset:0;
    z-index:-4;
    background:rgba(2,6,23,.05);
}


/* PAGE */
.login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

/* LOGIN CARD */
.login-card{
    width:560px;
    max-width:100%;
    padding:36px;
    border-radius:30px;

    background:rgba(15,23,42,0.20) !important;

    border:1px solid rgba(255,255,255,.10);

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);

    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);

    position:relative;
    overflow:hidden;
}

.login-card::before{
    content:"";
    position:absolute;
    top:0;
    left:28px;
    right:28px;
    height:3px;
    border-radius:0 0 999px 999px;
    background:linear-gradient(90deg,var(--primary),var(--secondary));
}

.login-card::after{
    display:none;
}

/* HEADER */
.login-header{
    text-align:center;
    position:relative;
    z-index:2;
    margin-bottom:28px;
}

.logo-wrap{
    width:86px;
    height:86px;
    margin:0 auto 18px;
    border-radius:26px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 22px 55px rgba(99,102,241,.35);
}

.logo-wrap img{
    width:62px;
    height:62px;
    object-fit:contain;
    border-radius:18px;
}

.login-header h1{
    color:#fff;
    font-size:28px;
    font-weight:900;
    letter-spacing:-.7px;
    margin-bottom:6px;
}

.login-header p{
    color:var(--muted);
    font-size:14px;
}

/* ALERT */
.login-alert{
    position:relative;
    z-index:2;
    display:flex;
    gap:10px;
    padding:13px 14px;
    margin-bottom:16px;
    border-radius:16px;
    background:rgba(239,68,68,.12);
    border:1px solid rgba(239,68,68,.25);
    color:#fecaca;
    font-size:14px;
}

/* INPUT */
.input-group{
    position:relative;
    z-index:2;
    margin-bottom:16px;
}

.input-group input{
    width:100%;
    height:56px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(2,6,23,.72);
    color:#fff;
    outline:none;
    padding:0 52px 0 48px;
    font-size:15px;
    transition:.25s;
}

.input-group input::placeholder{
    color:#64748b;
}

.input-group input:focus{
    border-color:rgba(6,182,212,.85);
    box-shadow:0 0 0 4px rgba(6,182,212,.12);
    background:rgba(2,6,23,.88);
}

.input-icon{
    position:absolute;
    left:17px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
}

.pass-toggle{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    border:0;
    border-radius:13px;
    background:transparent;
    color:#94a3b8;
    cursor:pointer;
}

.pass-toggle:hover{
    background:rgba(255,255,255,.08);
    color:#fff;
}

/* OPTIONS */
.login-options{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:8px 0 22px;
    font-size:14px;
}

.remember{
    display:flex;
    align-items:center;
    gap:9px;
    color:#cbd5e1;
    cursor:pointer;
}

.remember input{
    width:16px;
    height:16px;
    accent-color:var(--primary);
}

.login-options a{
    color:#a5b4fc;
    text-decoration:none;
    font-weight:700;
}

.login-options a:hover{
    color:#fff;
}

/* BUTTON */
.login-btn{
    position:relative;
    z-index:2;
    width:100%;
    height:56px;
    border:0;
    border-radius:19px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 22px 50px rgba(99,102,241,.32);
    transition:.25s;
}

.login-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 30px 65px rgba(99,102,241,.42);
}

.login-btn:disabled{
    opacity:.75;
    cursor:not-allowed;
    transform:none;
}

.signup-btn{
    position:relative;
    z-index:2;
    width:100%;
    height:52px;
    margin-top:14px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.13);
    background:rgba(255,255,255,.055);
    color:#e0e7ff;
    font-weight:800;
    cursor:pointer;
    transition:.25s;
}

.signup-btn:hover{
    background:rgba(255,255,255,.10);
    color:#fff;
}

/* FOOTER */
.support-line{
    position:relative;
    z-index:2;
    margin-top:18px;
    display:flex;
    justify-content:center;
    gap:18px;
}

.support-line a{
    color:#94a3b8;
    text-decoration:none;
    font-size:13px;
}

.support-line a:hover{
    color:#fff;
}

.footer-copy{
    position:relative;
    z-index:2;
    text-align:center;
    margin-top:20px;
    color:#64748b;
    font-size:12px;
}

@media(max-width:480px){
    body{
        overflow:auto;
    }

    .login-card{
        padding:28px 20px;
        border-radius:24px;
    }

    .logo-wrap{
        width:76px;
        height:76px;
        border-radius:23px;
    }

    .logo-wrap img{
        width:52px;
        height:52px;
    }

    .login-header h1{
        font-size:24px;
    }

    .login-options{
        flex-direction:column;
        align-items:flex-start;
    }

    .support-line{
        flex-direction:column;
        align-items:center;
        gap:8px;
    }
}