/* Auth pages — login & register */

.auth-body {
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input {
    padding: 10px 12px;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-btn {
    padding: 11px;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-top: 4px;
}

.auth-btn:hover {
    background: #1d4ed8;
}

.auth-link {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Google Sign-In */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.google-btn:hover {
    background: var(--color-bg);
    border-color: #94a3b8;
    box-shadow: var(--shadow-sm);
}

.google-icon {
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--color-text-light);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-divider span {
    white-space: nowrap;
}

/* Flash messages */
.auth-messages {
    margin-bottom: 16px;
}

.auth-alert {
    padding: 10px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.auth-alert-error {
    background: var(--color-critical-bg);
    color: var(--color-critical);
    border: 1px solid #fca5a5;
}

.auth-alert-success {
    background: var(--color-healthy-bg);
    color: var(--color-healthy);
    border: 1px solid #86efac;
}
