* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; background: #fafafa; color: #222; }
h1 { font-size: 1.5rem; margin: 1rem 0; }
h2 { font-size: 1.15rem; margin: 1rem 0 0.5rem; }
h3 { font-size: 1rem; }
.page { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #1a1a23; color: #ddd; }
.sidebar a, .sidebar a:visited { color: #ccc; text-decoration: none; }
.sidebar .nav-link { display: block; padding: 0.5rem 0.75rem; border-radius: 4px; }
.sidebar .nav-link.active, .sidebar .nav-link:hover { background: #2c2c3a; color: #fff; }
.navbar-brand { color: #fff; border-bottom: 1px solid #2c2c3a; }
.top-row { background: #fff; padding: 0.75rem; border-bottom: 1px solid #e5e5e5; display: flex; justify-content: flex-end; align-items: center; }
main { flex: 1; }
.content { padding: 1.5rem 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 1rem; }
.card-num { font-size: 2rem; font-weight: 600; }
.grid { width: 100%; border-collapse: collapse; background: #fff; }
.grid th, .grid td { padding: 0.4rem 0.6rem; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.grid thead { background: #f0f0f4; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.small { font-size: 0.85rem; color: #555; }
.muted { color: #888; }
.form { background: #fff; padding: 1rem; border: 1px solid #e5e5e5; border-radius: 6px; margin: 1rem 0; }
.form label { display: block; margin: 0.5rem 0; }
.form input, .form select, .form-inline input, .form-inline select { padding: 0.3rem 0.5rem; border: 1px solid #ccc; border-radius: 4px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 1rem; }
button { padding: 0.3rem 0.7rem; border: 1px solid #ccc; background: #fff; border-radius: 4px; cursor: pointer; }
button:hover { background: #f0f0f4; }
.btn-link { background: none; border: none; color: #06c; cursor: pointer; padding: 0; }
.error { color: #c00; margin-top: 0.5rem; }
.info { color: #064; margin-top: 0.5rem; }
.feat { display: inline-block; margin-right: 0.6rem; }
.brand-block { margin: 1.5rem 0; }
/* ============ Auth (login / signin) ============ */
.empty-layout {
    min-height: 100vh;
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(0, 212, 255, 0.16), transparent 60%),
        #0a0a12;
    color: #e6e6f0;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}
.empty-layout::before,
.empty-layout::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}
.empty-layout::before {
    top: -120px;
    right: -120px;
    background: radial-gradient(closest-side, #7c5cff, transparent);
}
.empty-layout::after {
    bottom: -160px;
    left: -160px;
    background: radial-gradient(closest-side, #00d4ff, transparent);
}

.auth-shell {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1;
}
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(230, 230, 240, 0.55);
    font-size: 0.85rem;
    text-decoration: none;
    width: fit-content;
    transition: color 0.15s ease;
}
.auth-back:hover { color: #00d4ff; }

.auth-card {
    background: rgba(18, 18, 30, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2.2rem 2rem;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(0, 212, 255, 0.04);
    animation: auth-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes auth-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.6rem;
}
.auth-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #00d4ff, #7c5cff);
    display: grid;
    place-items: center;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.18);
}
.auth-brand-mark svg { width: 19px; height: 19px; }
.auth-brand-name {
    font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    color: rgba(230, 230, 240, 0.85);
}

.auth-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: 0.4rem;
    background: linear-gradient(180deg, #ffffff 0%, #b8b8d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-sub {
    color: rgba(230, 230, 240, 0.55);
    font-size: 0.9rem;
    margin-bottom: 1.7rem;
    line-height: 1.45;
}

.auth-form { display: flex; flex-direction: column; gap: 0.95rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.4rem; }
.auth-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(230, 230, 240, 0.65);
    letter-spacing: 0.02em;
}
.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(10, 10, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.05rem 0.85rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.auth-input-wrap:focus-within {
    border-color: rgba(0, 212, 255, 0.55);
    background: rgba(10, 10, 18, 0.75);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
}
.auth-input-ico {
    color: rgba(230, 230, 240, 0.4);
    flex-shrink: 0;
}
.auth-input-wrap:focus-within .auth-input-ico { color: #00d4ff; }
.auth-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e6e6f0;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0.75rem 0;
    width: 100%;
}
.auth-input-wrap input::placeholder {
    color: rgba(230, 230, 240, 0.3);
}
.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: #e6e6f0;
    -webkit-box-shadow: 0 0 0px 1000px rgba(10, 10, 18, 0) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid rgba(255, 77, 109, 0.25);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #00d4ff, #7c5cff);
    color: #0a0a12;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 212, 255, 0.22);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.auth-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.auth-btn:active { transform: translateY(0); filter: brightness(0.97); }
.auth-btn:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

.auth-footnote {
    margin-top: 1.4rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(230, 230, 240, 0.45);
}
.auth-footnote a {
    color: #00d4ff;
    text-decoration: none;
}
.auth-footnote a:hover { text-decoration: underline; }

.auth-meta {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: rgba(230, 230, 240, 0.28);
    text-transform: uppercase;
}
.auth-meta .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

@media (max-width: 480px) {
    .auth-card { padding: 1.6rem 1.2rem; border-radius: 14px; }
    .auth-title { font-size: 1.35rem; }
}
