
/* ── LAYOUT ── */

.auth-layout {
  grid-template-columns: 1fr 1fr;
}

/* ── LEFT PANEL (décoratif) ── */
.auth-left {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.auth-left-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.auth-left-title span {
  background: linear-gradient(135deg, var(--violet-lt) 30%, var(--amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-left-sub {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 380px;
}
.auth-perks {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.auth-perk {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .92rem;
  color: var(--text-soft);
}
.perk-dot {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(124,58,237,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}

/* Mini bingo déco */
.deco-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-width: 200px;
  opacity: .5;
}
.deco-cell {
  aspect-ratio: 1;
  min-height: 0;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.deco-cell.on  { background: var(--violet-dk); border-color: var(--violet-lt); }
.deco-cell.hot { background: linear-gradient(135deg, var(--amber), #F97316); border-color: transparent; }

/* ── RIGHT PANEL (formulaire) ── */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}
.auth-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}
.auth-card-sub {
  color: var(--text-soft);
  font-size: .88rem;
  margin-bottom: 2rem;
}
.auth-card-sub a {
  color: var(--violet-lt);
  text-decoration: none;
  font-weight: 600;
}
.auth-card-sub a:hover { text-decoration: underline; }

/* ── FORM ── */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.field-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: .02em;
}
.field-wrap {
  position: relative;
}
.field-wrap input {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field-wrap input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.field-wrap input.valid   { border-color: rgba(16,185,129,.5); }
.field-wrap input.invalid { border-color: rgba(239,68,68,.5); }
.field-wrap .toggle-pw {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: .85rem; padding: .25rem;
  transition: color .2s;
}
.field-wrap .toggle-pw:hover { color: var(--text-soft); }

.field-hint {
  font-size: .75rem;
  color: var(--muted);
  min-height: 1.1em;
  transition: color .2s;
}
.field-hint.error { color: var(--red); }
.field-hint.ok    { color: var(--green); }

/* ── PASSWORD STRENGTH ── */
.pw-strength {
  display: flex;
  gap: 4px;
  margin-top: .1rem;
}
.pw-bar {
  flex: 1; height: 3px; border-radius: 99px;
  background: var(--border);
  transition: background .3s;
}
.pw-bar.weak   { background: var(--red); }
.pw-bar.medium { background: var(--amber); }
.pw-bar.strong { background: var(--green); }

/* ── SUBMIT ── */
.btn-submit {
  margin-top: .5rem;
  width: 100%;
  padding: .9rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-dk));
  box-shadow: 0 4px 24px rgba(124,58,237,.4);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-submit:hover  { transform: translateY(-1px); box-shadow: 0 6px 32px rgba(124,58,237,.6); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── DIVIDER ── */
.divider {
  display: flex; align-items: center; gap: 1rem;
  color: var(--muted); font-size: .78rem;
  margin: 1.5rem 0 1.25rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── OAUTH (placeholder) ── */
.oauth-btn {
  width: 100%;
  padding: .75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--dark);
  color: var(--text);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  transition: border-color .2s, background .2s;
}
.oauth-btn:hover { border-color: var(--border-focus); background: var(--surface-2); }
.oauth-logo { font-size: 1rem; }

/* ── SERVER ERRORS ── */
.server-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .85rem;
  color: #FCA5A5;
  margin-bottom: 1.25rem;
}


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.25rem;
  }
  .auth-left { display: none; }
}

.forgot-link {
  font-size: .75rem; color: var(--muted);
  text-decoration: none; transition: color .2s;
}
.forgot-link:hover { color: var(--violet-lt); }

.remember-label {
  display: flex; align-items: center; gap: .6rem;
  cursor: pointer; font-size: .85rem; color: var(--text-soft);
}
.remember-label input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 4px; cursor: pointer;
  accent-color: var(--violet);
  flex-shrink: 0;
}