* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
}

body {
    background: #0a0a0a;
    color: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    /* subtle radial glow at center */
    background-image: radial-gradient(ellipse 70% 50% at 50% 40%, #141414 0%, #0a0a0a 100%);
}

.auth-page {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Brand ── */
.auth-brand {
    text-align: center;
}

.brand-wordmark {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 14px;
    color: #fff;
    line-height: 1;
    text-indent: 14px; /* compensate for letter-spacing on last char */
}

.brand-tagline {
    margin-top: 10px;
    font-size: 13px;
    color: #444;
    letter-spacing: 0.5px;
}

/* ── Card ── */
.auth-card {
    background: #111;
    border: 1px solid #1c1c1c;
    border-radius: 20px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

/* ── Inputs ── */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.input-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #555;
}

.input-group input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #252525;
    padding: 10px 0;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    width: 100%;
}

.input-group input::placeholder { color: #333; }
.input-group input:focus { border-bottom-color: #666; }

/* ── Button ── */
.auth-btn {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.auth-btn:hover  { background: #e8e8e8; }
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Message ── */
.auth-msg {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    min-height: 18px;
    color: #e05050;
}
.auth-msg.ok { color: #4ade80; }

/* ── Switch ── */
.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #444;
    padding-top: 16px;
    border-top: 1px solid #1a1a1a;
}

.auth-switch a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }
