/* Auth Pages — Login + Register */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--bg-base, #0a0e17);
}

.auth-card {
    background: var(--bg-surface, #111827);
    border: 1px solid var(--border-default, #2d3548);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-primary, #e0e0e0);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Form */
.auth-form .form-group {
    margin-bottom: 1rem;
}
.auth-form .form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 4px;
    font-weight: 500;
}
.auth-form .form-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-base, #0a0e17);
    border: 1px solid var(--border-default, #2d3548);
    border-radius: 8px;
    color: var(--text-primary, #e0e0e0);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.auth-form .form-group input:focus { border-color: var(--accent-teal, #00d4aa); }
.auth-form .form-group input::placeholder { color: var(--text-muted, #52637a); }

.auth-form .btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: #0a0e17;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}
.auth-form .btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,212,170,0.35); }
.auth-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error */
.auth-error {
    display: none;
    background: rgba(255,107,107,0.1);
    border: 1px solid rgba(255,107,107,0.3);
    color: #ff6b6b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.auth-error.visible { display: block; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted, #52637a);
    font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-default, #2d3548);
}
.auth-divider span { padding: 0 12px; }

/* Google Button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-base, #0a0e17);
    border: 1px solid var(--border-default, #2d3548);
    border-radius: 8px;
    color: var(--text-primary, #e0e0e0);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-google:hover { background: var(--bg-hover, #1a1f2e); }

/* Link row */
.auth-link-row {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}
.auth-link-row a {
    color: var(--accent-teal, #00d4aa);
    text-decoration: none;
    font-weight: 600;
}
.auth-link-row a:hover { text-decoration: underline; }

/* Spinner */
.spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
