/* ================================================================
   login.css — Auth page styles
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-page {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.auth-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a4f7a;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.auth-logo span {
  background: linear-gradient(135deg, #e8830a, #d4720a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 24px;
}

/* Messages */
.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.auth-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.hidden { display: none !important; }

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.field input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}

.btn-submit {
  width: 100%;
  background: #0d9488;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}

.btn-submit:hover:not(:disabled) { background: #0f766e; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #94a3b8;
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Google button */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 11px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-google:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Toggle */
.auth-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: #64748b;
}

.btn-link {
  background: none;
  border: none;
  color: #0d9488;
  font-weight: 700;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  margin-left: 4px;
  padding: 0;
}

.btn-link:hover { text-decoration: underline; }
