/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: #1e293b; line-height: 1.6; background: #f1f5f9; min-height: 100vh; }

.auth-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem; }
.auth-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 4px 24px rgba(0,0,0,0.08); padding: 2.5rem; width: 100%; max-width: 440px; }
.auth-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; color: #1e293b; justify-content: center; margin-bottom: 2rem; text-decoration: none; }
.logo-icon { font-size: 1.5rem; color: #2563eb; }
.auth-logo-img { max-height: 60px; max-width: 280px; object-fit: contain; }

.auth-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; text-align: center; }
.auth-card .subtitle { color: #64748b; text-align: center; margin-bottom: 1.5rem; }

/* === Forms === */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.375rem; font-size: 0.875rem; color: #374151; }
.form-group input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group .error-text { color: #dc2626; font-size: 0.8125rem; margin-top: 0.25rem; }

.btn { display: inline-block; padding: 0.75rem 1.75rem; border-radius: 0.5rem; font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: all 0.2s; text-align: center; width: 100%; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }

.auth-links { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; }
.auth-links a { color: #2563eb; }

/* === Flash Messages === */
.flash-messages { margin-bottom: 1.25rem; }
.flash { padding: 0.75rem 1rem; border-radius: 0.5rem; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
.flash-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.flash-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: inherit; opacity: 0.7; }
.flash-close:hover { opacity: 1; }
