/* ============================================
   AUTH PAGES - Login / Register
   Estilo consistente con admin.css
   ============================================ */

:root {
  --bg:              #f6f5f2;
  --surface:         #ffffff;
  --border:          rgba(0, 0, 0, 0.06);
  --border-mid:      rgba(0, 0, 0, 0.10);
  --accent:          #1a1a2e;
  --brand:           #e07a5f;
  --brand-light:     #f4a88a;
  --brand-glow:      rgba(224, 122, 95, 0.12);
  --brand-deep:      #c4623f;
  --text-1:          #1a1a2e;
  --text-2:          #5a5a72;
  --text-3:          #9e9eb0;
  --text-inv:        #ffffff;
  --r-sm:            10px;
  --r-md:            14px;
  --r-lg:            18px;
  --r-xl:            24px;
  --ease:            cubic-bezier(.4, 0, .2, 1);
  --t-fast:          150ms var(--ease);
  --t-normal:        250ms var(--ease);
  --shadow-sm:       0 1px 3px rgba(0,0,0,.04);
  --shadow-md:       0 4px 16px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg:       0 12px 40px rgba(0,0,0,.07);
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-inv);
}

.auth-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-1);
  margin-bottom: 4px;
}

.auth-header p {
  color: var(--text-3);
  font-size: 14px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.form-group label .required {
  color: #e25555;
}

.form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-1);
  background: var(--surface);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
  -webkit-appearance: none;
}

.form-control::placeholder { color: var(--text-3); }

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  min-height: 46px;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: var(--text-inv);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-brand {
  background: var(--brand);
  color: var(--text-inv);
  box-shadow: 0 2px 12px rgba(224,122,95,.2);
}

.btn-brand:hover {
  box-shadow: 0 4px 20px rgba(224,122,95,.3);
}

.btn-block {
  width: 100%;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.alert-error {
  background: #fdeaea;
  color: #e25555;
  border: 1px solid rgba(226, 85, 85, 0.2);
}

.alert-success {
  background: #edf7f1;
  color: #2d936c;
  border: 1px solid rgba(45, 147, 108, 0.2);
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}

.auth-footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

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

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

@media (min-width: 480px) {
  .auth-card {
    padding: 40px 36px;
  }
  
  .auth-header h1 {
    font-size: 26px;
  }
}