/* =============================================
   CABANA DE OXALÁ — Auth Pages Styles
   ============================================= */

:root {
  --color-gold: #b8860b;
  --color-gold-light: #d4a017;
  --color-gold-pale: #fef9ee;
  --color-bg: #faf8f4;
  --color-text: #1a1209;
  --color-text-muted: #6b5b3e;
  --color-border: #e8dfc9;
  --color-shadow: rgba(184, 134, 11, 0.12);
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --color-bg: #0f0c07;
  --color-text: #f5ead8;
  --color-text-muted: #c4a96b;
  --color-border: #2a2218;
  --color-gold-pale: #1a1408;
  --color-shadow: rgba(0,0,0,0.4);
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  transition: background var(--transition), color var(--transition);
}

.auth-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-header { text-align: center; margin-bottom: 2rem; }

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #b8860b, #d4a017);
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.auth-site-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.2rem;
}

.auth-site-sub { color: var(--color-text-muted); font-size: 0.85rem; }

.auth-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: 0 8px 40px var(--color-shadow);
}

[data-theme="dark"] .auth-card { background: #1a1510; border-color: #2a2218; }

.auth-card-title { font-size: 1.3rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.35rem; }
.auth-card-desc { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 0.4rem; }

.form-control {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(184,134,11,0.12); }

.btn-auth {
  width: 100%;
  padding: 0.8rem;
  background: var(--color-gold);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  margin-top: 0.5rem;
}

.btn-auth:hover { background: var(--color-gold-light); transform: translateY(-1px); }
.btn-auth:active { transform: translateY(0); }

.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--color-text-muted); font-size: 0.875rem; }
.auth-footer a { color: var(--color-gold); font-weight: 500; }
.auth-footer a:hover { color: var(--color-gold-light); }

.auth-back { display: block; text-align: center; margin-top: 1rem; color: var(--color-text-muted); font-size: 0.82rem; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  border-width: 1px;
  border-style: solid;
}

.alert-error { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.alert-success { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
