/**
 * Udoca - Pages Auth (sélection zone + login)
 * Objectif: propre, cohérent, sans styles inline.
 */

:root {
  --auth-bg-1: #c0392b;
  --auth-bg-2: #a93226;
  --auth-card: #ffffff;
  --auth-card-border: rgba(255, 255, 255, 0.18);
  --auth-text-on-bg: rgba(255, 255, 255, 0.92);
  --auth-muted-on-bg: rgba(255, 255, 255, 0.78);
  --auth-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

body.udoca-auth {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 10% 20%, rgba(255,255,255,0.12) 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 80%, rgba(255,255,255,0.10) 0%, transparent 55%),
              linear-gradient(135deg, var(--auth-bg-1) 0%, var(--auth-bg-2) 100%);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-shell {
  width: min(980px, 100%);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--auth-text-on-bg);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.auth-title {
  margin: 0.7rem 0 0.4rem;
  color: var(--auth-text-on-bg);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
}

.auth-subtitle {
  margin: 0;
  color: var(--auth-muted-on-bg);
  font-size: 0.95rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--auth-card-border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(10px);
}

.auth-panel {
  background: var(--auth-card);
  border-radius: 14px;
  padding: 1.7rem;
}

.auth-grid {
  display: grid;
  gap: 0.9rem;
}

.auth-grid.zones {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .auth-grid.zones {
    grid-template-columns: 1fr;
  }
}

.auth-zone {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #2f2f2f;
  border: 1px solid #eee;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.auth-zone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  border-color: rgba(33, 135, 74, 0.35);
}

.auth-zone i {
  width: 2.1rem;
  text-align: center;
  font-size: 1.25rem;
  color: var(--theme-claire);
}

.auth-zone span {
  font-weight: 600;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--theme-foncee);
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-back:hover {
  text-decoration: underline;
}

.auth-form {
  margin-top: 1rem;
}

.auth-form .row {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--theme-sombre);
}

.auth-form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(33, 135, 74, 0.55);
  box-shadow: 0 0 0 4px rgba(33, 135, 74, 0.12);
}

.auth-alert {
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #fee;
  color: #b00020;
  border: 1px solid rgba(176, 0, 32, 0.18);
  font-size: 0.95rem;
}

.auth-actions {
  margin-top: 1.1rem;
}

.auth-btn {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--theme-claire);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-btn:hover {
  filter: brightness(0.96);
}

.auth-footnote {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b6e77;
}

