:root {
    --bg: #0f1115;
    --panel: #171a21;
    --panel-border: #232733;
    --text: #e7e9ee;
    --muted: #8a92a3;
    --accent: #5b8def;
    --accent-hover: #4a78dc;
    --input-bg: #11141a;
    --input-border: #2a2f3d;
    --input-focus: #5b8def;
    --danger: #e5484d;
    --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: radial-gradient(circle at 20% 0%, #1a2030 0%, var(--bg) 60%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.brand {
    text-align: center;
    margin-bottom: 24px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #8a5bef);
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 12px;
}

.brand h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tagline {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.beta-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffd479;
    background: rgba(255, 212, 121, 0.1);
    border: 1px solid rgba(255, 212, 121, 0.35);
    border-radius: 999px;
}

.beta-notice {
    margin: 0 0 18px;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
    background: rgba(91, 141, 239, 0.06);
    border: 1px solid rgba(91, 141, 239, 0.18);
    border-radius: 8px;
}

.disabled-link {
    color: var(--muted);
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.7;
}

.signup-note {
    color: var(--muted);
    font-size: 12px;
    margin-left: 4px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.login-form input[type="email"],
.login-form input[type="password"] {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-form input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.18);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    color: var(--text) !important;
    font-size: 13px !important;
    cursor: pointer;
}

.checkbox input {
    accent-color: var(--accent);
}

.muted-link {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.muted-link:hover {
    color: var(--text);
}

button.primary {
    margin-top: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

button.primary:hover {
    background: var(--accent-hover);
}

.signup {
    margin: 8px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.signup a {
    color: var(--accent);
    text-decoration: none;
}

.signup a:hover {
    text-decoration: underline;
}

.footnote {
    margin-top: 20px;
    color: var(--muted);
    font-size: 12px;
    display: flex;
    gap: 8px;
}

.footnote a {
    color: var(--muted);
    text-decoration: none;
}

.footnote a:hover {
    color: var(--text);
}
