:root{
    --brand:#3f5564;
    --brand2:#5c87a6;
    --bg:#f6f7fb;
    --card:#fff;
    --text:#0f172a;
    --muted:#64748b;
    --border:rgba(15,23,42,.10);
    --shadow:0 10px 26px rgba(15,23,42,.08);
    --radius:16px;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial;
}

/* Topbar */
.topbar{
    position:sticky; top:0; z-index:1000;
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(15,23,42,.08);
}
.topbar .wrap{
    display:flex; align-items:center; gap:12px;
    padding:10px 14px;
}
.brand{
    display:flex; align-items:center; gap:10px;
    text-decoration:none; color:var(--text);
    font-weight:900;
    white-space:nowrap;
}
.brand .logo{
    width:38px;height:38px;border-radius:12px;
    background:linear-gradient(135deg,var(--brand),var(--brand2));
    display:grid;place-items:center;color:#fff;
    box-shadow:0 8px 20px rgba(63,85,100,.25);
}
.top-actions{
    margin-inline-start:auto;
    display:flex; align-items:center; gap:10px;
    flex-wrap:wrap;
}
.top-actions a{
    text-decoration:none;
    font-weight:700;
    font-size:13px;
    color:#0f172a;
    padding:8px 10px;
    border-radius:12px;
}
.top-actions a:hover{ background:rgba(15,23,42,.05); }

/* Page */
.page{
    max-width:1100px;
    margin:18px auto;
    padding:0 14px 30px;
}

.card-auth{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow:var(--shadow);
    padding:18px;
    max-width: 680px;
    margin: 0 auto;
}
.card-auth h1{
    margin:0 0 6px;
    font-weight:900;
    font-size:20px;
}
.card-auth .sub{
    margin:0 0 14px;
    color:var(--muted);
    font-size:13px;
    line-height:1.9;
}

.hint{
    background:rgba(37,99,235,.06);
    border:1px solid rgba(37,99,235,.12);
    border-radius:14px;
    padding:12px;
    font-size:13px;
    color:#334155;
    display:flex;
    gap:10px;
    align-items:flex-start;
    margin-bottom:14px;
}
.hint i{
    color:#2563eb;
    margin-top:2px;
    font-size:16px;
}

.form-label{
    font-size:13px;
    font-weight:800;
    color:#334155;
    margin-bottom:6px;
}
.input-wrap{ position:relative; }
.input-wrap i.prefix{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
    pointer-events:none;
}
.form-control{
    height:46px;
    border-radius:14px;
    border:1px solid rgba(15,23,42,.12);
    box-shadow:none!important;
    padding-right:42px;
    background:#fff;
}
.form-control:focus{
    border-color:rgba(37,99,235,.45);
    box-shadow:0 0 0 .2rem rgba(37,99,235,.12)!important;
}

.btn-main{
    height:46px;
    border:0;
    border-radius:14px;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    font-weight:900;
    width:100%;
    box-shadow:0 14px 28px rgba(37,99,235,.25);
}
.btn-main:hover{ filter:brightness(.98); }

.link{
    color:#2563eb;
    font-weight:900;
    text-decoration:none;
    font-size:13px;
}
.link:hover{ text-decoration:underline; }

/* Footer */
footer{
    background:#1f2937;
    color:#cbd5e1;
    padding:40px 14px 20px;
    margin-top:18px;
}
footer a{ color:#cbd5e1; text-decoration:none; }
footer a:hover{ color:#fff; text-decoration:underline; }
