/* Shared styles for server-rendered auth pages (login / register / error).
 *
 * Moved out of the templates' inline <style> blocks so those pages can be
 * served under a strict CSP (style-src 'self', no 'unsafe-inline').
 * Selectors are scoped by card class to keep each page's original look
 * (notably the error page's red <h1>).
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card,
.error-card {
    background: white;
    padding: 2.5rem 2.25rem;
    border-radius: 16px;
    border: 1px solid #ECEEF2;
    box-shadow: 0 8px 30px rgba(15, 26, 43, 0.08);
    width: 100%;
    max-width: 440px;
}

.error-card {
    text-align: center;
}

.login-logo {
    display: block;
    height: 34px;
    width: auto;
    margin: 0.25rem auto 1.25rem;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0E1A2B;
    font-size: 1.75rem;
    font-weight: 700;
}

.error-card h1 {
    color: #c33;
    margin-bottom: 1rem;
}

.error-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: #1F2A37;
    font-size: 0.95rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #D5D9E0;
    border-radius: 8px;
    font-size: 1rem;
    color: #0E1A2B;
}

input::placeholder {
    color: #9AA3AF;
}

input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

button {
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.5rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #2563EB;
}

.login-help {
    text-align: center;
    margin-top: 1.5rem;
    color: #6B7280;
    font-size: 0.9rem;
}

.error {
    background: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.login-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.login-link a,
.error-card a {
    color: #4a90d9;
    text-decoration: none;
}
