﻿:root {
    --bg: #020617;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2937;
    --accent: #0ea5e9;
    --accent2: #38bdf8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background: radial-gradient(circle at top,#1f2937 0,#020617 45%,#000 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background .25s,color .25s;
}

    body.light {
        background: #f3f4f6;
        color: #020617;
    }

a {
    color: inherit;
    text-decoration: none;
}

.card {
    max-width: 380px;
    width: 100%;
    background: #020617;
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,.5);
    padding: 22px 20px 18px;
    box-shadow: 0 20px 45px rgba(15,23,42,.95);
}

body.light .card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 12px 26px rgba(15,23,42,.15);
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg,#0ea5e9,#38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #020617;
    font-size: 18px;
}

.brand-main {
    font-weight: 600;
    font-size: 15px;
}

.brand-sub {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .1em;
    text-transform: uppercase;
}

h1 {
    font-size: 19px;
    margin-bottom: 4px;
}

p.sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}

label {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
}

.field {
    width: 100%;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: #020617;
    color: var(--text);
    font-size: 12px;
    margin-bottom: 9px;
}

    .field::placeholder {
        color: var(--muted);
    }

body.light .field {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #111827;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
    margin: 4px 0 10px;
}

.btn {
    width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right,#0ea5e9,#38bdf8);
    color: #020617;
    font-weight: 600;
    font-size: 13px;
}

    .btn:hover {
        opacity: .96;
    }

.hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.5;
}

    .hint code {
        background: #020617;
        color: #e5e7eb;
        padding: 1px 4px;
        border-radius: 4px;
        font-size: 10px;
    }

body.light .hint code {
    background: #e5e7eb;
    color: #111827;
}

.theme-toggle {
    position: fixed;
    top: 10px;
    right: 12px;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.6);
    background: #020617;
    color: #e5e7eb;
    cursor: pointer;
}

body.light .theme-toggle {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
}

.role-info {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
}
