/* ============================================================
   css/login.css — Page de connexion
   ============================================================ */

/* ── Layout ────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* ── Panneau gauche (visuel) ───────────────────────────────── */
.auth-visual {
  position: relative;
  background: linear-gradient(160deg, #060810 0%, #0a1530 50%, #0d1020 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 50%, rgba(201,168,76,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 70% 30%, rgba(26,79,138,.12) 0%, transparent 70%);
}

/* Grille géométrique décorative */
.auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.auth-logo-area {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-logo-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(201,168,76,.4));
  animation: logoPulse 4s ease-in-out infinite;
}

/* Placeholder quand pas encore de logo */
.auth-logo-placeholder {
  width: 200px;
  height: 200px;
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--gold-deep);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-display);
  filter: drop-shadow(0 0 30px rgba(201,168,76,.25));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(201,168,76,.3)); }
  50%       { filter: drop-shadow(0 0 40px rgba(201,168,76,.55)); }
}

.auth-org-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-main);
}

.auth-org-subtitle {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-seal-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold-deep), transparent);
  margin: .5rem auto;
}

.auth-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .88rem;
  color: var(--text-secondary);
  max-width: 280px;
  text-align: center;
  line-height: 1.7;
}

/* Décoration coins */
.auth-corners {
  position: absolute;
  inset: 1.5rem;
  pointer-events: none;
  z-index: 1;
}
.auth-corners::before,
.auth-corners::after,
.auth-corners > span::before,
.auth-corners > span::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: rgba(201,168,76,.3);
  border-style: solid;
}
.auth-corners::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.auth-corners::after  { top: 0; right: 0; border-width: 1px 1px 0 0; }
.auth-corners > span::before { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.auth-corners > span::after  { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

/* ── Panneau droit (formulaire) ────────────────────────────── */
.auth-form-panel {
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
  position: relative;
  border-left: 1px solid var(--border-subtle);
}

.auth-form-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), var(--gold-main), var(--gold-deep), transparent);
}

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

.auth-form-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .4rem;
}

.auth-form-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Barre décorative sous le titre */
.auth-title-bar {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-main));
  margin-bottom: 1.8rem;
}

/* Lien de bas de formulaire */
.auth-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.auth-footer-link a { color: var(--gold-main); font-weight: 600; }

/* Mention bas de page */
.auth-legal {
  position: absolute;
  bottom: 1.5rem;
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: .05em;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 260px; padding: 2rem; }
  .auth-logo-img, .auth-logo-placeholder { width: 120px; height: 120px; }
  .auth-form-panel { padding: 2rem 1.5rem; }
}
