:root {
    --bg-body: #0f1114;
    --bg-panel: #171a1f;
    --border: #2a3038;
    --text: #e8eaed;
    --text-muted: #9aa3ad;
    --danger: #f87171;
    --accent: #5865f2;
    --accent-hover: #4752c4;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: "Segoe UI", "Segoe UI Web Regular", system-ui, sans-serif;
    font-size: 15px;
    color: var(--text);
    background-color: var(--bg-body);
    background-image:
        linear-gradient(rgba(15, 17, 20, 0.72), rgba(15, 17, 20, 0.72)),
        url("/images/login-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-card {
    width: 440px;
    max-width: 100%;
    background: rgba(23, 26, 31, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 44px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.login-card form {
    margin: 0;
}

.login-stepup-copy {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
}

.login-brand {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.login-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.login-subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.login-error {
    margin-bottom: 16px;
    color: var(--danger);
    font-size: 14px;
    line-height: 1.4;
}

.login-hint {
    margin: 16px 0 0;
    font-size: 14px;
}

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

.login-hint a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.login-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: none;
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    box-sizing: border-box;
}

.login-discord-btn:hover {
    background: var(--accent-hover);
}

.login-discord-icon {
    flex-shrink: 0;
}
