* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #334155; margin: 0; padding: 0; }

.auth-page { min-height: 100vh; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-container { width: 100%; max-width: 420px; }
.auth-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); }

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h1 { font-size: 28px; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.auth-header p { font-size: 15px; color: #64748b; margin: 0; }

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 500; color: #334155; display: flex; justify-content: space-between; align-items: center; }
.label-link { font-size: 13px; color: #2563eb; text-decoration: none; font-weight: 400; }
.label-link:hover { text-decoration: underline; }
.form-group input { padding: 12px 16px; font-size: 15px; border: 1px solid #e2e8f0; border-radius: 8px; transition: border-color 0.15s, box-shadow 0.15s; }
.form-group input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.form-group input::placeholder { color: #94a3b8; }
.field-hint { font-size: 12px; color: #94a3b8; }

.checkbox-group { flex-direction: row !important; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #64748b; }
.checkbox-label input { width: 16px; height: 16px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; font-size: 15px; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; text-decoration: none; transition: all 0.15s; }
.btn-primary { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4); }
.btn-secondary { background: #f1f5f9; color: #334155; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-block { width: 100%; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.auth-footer { text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.auth-footer p { margin: 0; font-size: 14px; color: #64748b; }
.auth-footer a { color: #2563eb; text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

.success-state, .error-state { text-align: center; padding: 20px 0; }
.success-icon, .error-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 20px; }
.success-icon { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: #fff; }
.error-icon { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: #fff; }
.success-state h2, .error-state h2 { font-size: 22px; color: #0f172a; margin: 0 0 12px; }
.success-state p, .error-state p { color: #64748b; margin: 0 0 24px; font-size: 15px; }

.text-center { text-align: center; }
.text-muted { color: #94a3b8; font-size: 13px; }

@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; }
    .auth-header h1 { font-size: 24px; }
}
