/* auth.css — styling for login, set-password, forgot-password, and dashboard */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  background: #f3f4f6;
}

/* ── Auth pages (login / set-password / forgot-password) ── */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e0e7ff 100%);
}

.auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 32px 36px;
  max-width: 420px;
  width: 100%;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.auth-logo-text {
  flex: 1;
}

.auth-logo-main {
  font-weight: 800;
  font-size: 14px;
  color: #1a3a6e;
  letter-spacing: -0.1px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.auth-field input {
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s;
}

.auth-field input:focus {
  outline: none;
  border-color: #1a3a6e;
  box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.1);
}

.auth-field-hint {
  font-size: 12px;
  color: #6b7280;
}

.auth-btn {
  background: #1a3a6e;
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.auth-btn:hover {
  background: #2a4d8a;
}

.auth-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.auth-link-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
}

.auth-link-row a {
  color: #1a3a6e;
  text-decoration: none;
  font-weight: 600;
}

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

.auth-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  border-left: 4px solid;
}

.auth-alert-error {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #7f1d1d;
}

.auth-alert-info {
  background: #f0f9ff;
  border-color: #0369a1;
  color: #0c4a6e;
}

.auth-alert-success {
  background: #f0fdf4;
  border-color: #15803d;
  color: #14532d;
}

/* ── Dashboard ── */

.dash-body {
  background: #f3f4f6;
}

.dash-header {
  background: linear-gradient(135deg, #1a3a6e 0%, #2563a8 100%);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dash-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-logout-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 7px 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.dash-logout-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.dash-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.dash-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.dash-card h2 {
  margin-top: 0;
  font-size: 20px;
  color: #1a3a6e;
}

.dash-stat {
  display: inline-block;
  margin-right: 24px;
}

.dash-stat-label {
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-stat-value {
  font-size: 28px;
  font-weight: 900;
  color: #111827;
}
