/* auth.css — Mur d'accès de la bêta fermée Cultoria (charte sombre + accent rose) */

#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(238,135,178,0.12), transparent 60%),
    linear-gradient(180deg, #11201a 0%, #0a1410 100%);
  font-family: 'Inter', system-ui, sans-serif;
  transition: opacity .4s ease;
}
#auth-overlay.auth-hidden { opacity: 0; pointer-events: none; }

.auth-card {
  width: 100%;
  max-width: 380px;
  background: rgba(17, 32, 26, 0.92);
  border: 1px solid rgba(238,135,178,0.18);
  border-radius: 20px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
}

.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-logo  { font-size: 40px; display: block; }
.auth-brand h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 26px;
  margin: 4px 0 2px;
  color: #f4f1ec;
  letter-spacing: .5px;
}
.auth-tag { color: #ee87b2; font-size: 12px; font-weight: 600; margin: 0; }

.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 12px; }
.auth-tab {
  flex: 1; border: 0; background: transparent; color: #9fb1a6;
  padding: 9px 0; border-radius: 9px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .2s;
}
.auth-tab.active { background: linear-gradient(135deg, #ee87b2, #c44a82); color: #fff; }

.auth-view { display: flex; flex-direction: column; gap: 11px; }
.auth-view[hidden] { display: none; }

.auth-view input[type="email"],
.auth-view input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  color: #f4f1ec;
  font-size: 15px;
  box-sizing: border-box;
}
.auth-view input:focus { outline: none; border-color: #ee87b2; }

.auth-btn {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #ee87b2 0%, #c44a82 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .12s, filter .2s;
}
.auth-btn:hover  { filter: brightness(1.06); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn.ghost {
  background: transparent;
  border: 1px solid rgba(238,135,178,0.4);
  color: #ee87b2;
}

.auth-link  { color: #9fb1a6; font-size: 13px; text-align: center; text-decoration: none; }
.auth-link:hover { color: #ee87b2; }
.auth-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #b9c7be; line-height: 1.4; }
.auth-consent a { color: #ee87b2; }
.auth-hint  { color: #7e9087; font-size: 12px; text-align: center; margin: 2px 0 0; }
.auth-error { color: #ff9b9b; font-size: 13px; text-align: center; min-height: 18px; margin: 2px 0 0; }
.auth-msg   { color: #9fe0b0; font-size: 13px; text-align: center; min-height: 18px; margin: 2px 0 0; }
.auth-big   { font-family: 'Outfit', sans-serif; font-size: 18px; color: #f4f1ec; text-align: center; margin: 4px 0; }
#auth-verify p, #auth-denied p { color: #b9c7be; font-size: 14px; text-align: center; line-height: 1.5; }
#auth-verify strong, #auth-denied strong { color: #f4f1ec; }

.auth-credit { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.07); text-align: center; font-size: 12.5px; color: #7e9087; }
.auth-credit a { color: #ee87b2; text-decoration: none; font-weight: 600; }
.auth-credit a:hover { text-decoration: underline; }
