:root {
    color-scheme: dark;
    --bg: #0b1424;
    --surface: #111e32;
    --surface2: #172740;
    --text: #edf3fc;
    --muted: #91a2ba;
    --accent: #6ca8ff;
    --line: rgba(160,190,230,.14);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.admin-body { min-height: 100vh; }
.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.login-brand {
    position: relative;
    padding: 54px 8%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(49,112,194,.30), transparent 55%),
        linear-gradient(145deg, #101f36, #0b1424 75%);
    border-right: 1px solid var(--line);
}
.login-brand::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(117,169,239,.12);
    border-radius: 50%;
    right: -230px;
    bottom: -210px;
    box-shadow: 0 0 0 55px rgba(117,169,239,.025),
                0 0 0 110px rgba(117,169,239,.02);
}
.brand { font-size: 21px; font-weight: 800; letter-spacing: 1.2px; }
.brand span { color: var(--accent); }
.brand-message { max-width: 540px; position: relative; z-index: 1; }
.eyebrow {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 750;
}
.brand-message h1 {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.12;
    letter-spacing: -2px;
    margin: 20px 0;
}
.brand-message p { color: #aabbd1; font-size: 17px; max-width: 420px; }
.brand-bottom { color: #71839c; font-size: 12px; letter-spacing: 1px; }
.login-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.login-card { width: min(100%, 390px); }
.login-symbol {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(108,168,255,.3);
    background: rgba(108,168,255,.1);
    color: var(--accent);
    border-radius: 14px;
    font-size: 25px;
    margin-bottom: 32px;
}
.login-card h2 { font-size: 32px; margin: 9px 0 4px; letter-spacing: -1px; }
.login-description { color: var(--muted); margin: 0 0 30px; font-size: 14px; }
.login-card label {
    display: block;
    color: #cbd7e7;
    font-size: 13px;
    font-weight: 600;
    margin: 19px 0 8px;
}
.login-card input {
    width: 100%;
    height: 49px;
    border: 1px solid #2a3b54;
    background: #101d30;
    border-radius: 8px;
    color: white;
    padding: 0 14px;
    font: inherit;
    outline: none;
}
.login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,168,255,.12); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 65px; }
.show-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
}
.submit-button {
    width: 100%;
    height: 50px;
    margin-top: 27px;
    border: 0;
    border-radius: 8px;
    background: #347bd2;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.submit-button:hover { background: #478ee8; transform: translateY(-1px); }
.submit-button span { margin-left: 8px; }
.error-message {
    padding: 12px 14px;
    border: 1px solid rgba(255,110,110,.3);
    border-radius: 8px;
    color: #ffaaaa;
    background: rgba(255,70,70,.08);
    font-size: 13px;
    margin-bottom: 18px;
}
.secure-note {
    margin-top: 28px;
    text-align: center;
    color: #74869f;
    font-size: 12px;
}
.secure-note span { color: #6ca8ff; margin-right: 6px; }
.copyright { color: #667991; font-size: 12px; margin-top: 60px; }
.dashboard { width: min(900px, calc(100% - 40px)); margin: auto; }
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.status { color: #8ca1bc; font-size: 12px; }
.status i {
    display: inline-block;
    width: 7px; height: 7px;
    background: #4dc69a;
    border-radius: 50%;
    margin-right: 7px;
}
.welcome { padding: 85px 0 45px; }
.welcome h1 { font-size: 48px; letter-spacing: -2px; margin: 12px 0; }
.welcome p { color: var(--muted); }
.dash-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.dash-icon {
    width: 45px; height: 45px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(108,168,255,.1);
    color: var(--accent);
    font-size: 20px;
}
.dash-card h2 { font-size: 17px; margin: 0; }
.dash-card p { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.tag {
    margin-left: auto;
    color: #75d5b1;
    background: rgba(77,198,154,.1);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap;
}
.dash-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8193ab;
    font-size: 12px;
    margin-top: 35px;
}
.logout {
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
}
@media(max-width: 760px) {
    .login-layout { grid-template-columns: 1fr; }
    .login-brand { min-height: 260px; padding: 28px; }
    .brand-message { margin: 55px 0 20px; }
    .brand-message h1 { font-size: 38px; }
    .brand-bottom { display: none; }
    .login-side { padding: 55px 25px 25px; }
    .copyright { margin-top: 40px; }
    .welcome { padding: 55px 0 30px; }
    .welcome h1 { font-size: 38px; }
    .dash-card { align-items: flex-start; flex-wrap: wrap; }
    .tag { margin-left: 0; }
}
