/* Écrans publics d'authentification — même charte que la landing. */

.auth-page {
  min-height: calc(100vh - 76px);
}

.auth-hero {
  position: relative;
  padding: calc(76px + 2.5rem) 0 3.5rem;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(0, 132, 234, .45), transparent 60%),
    linear-gradient(140deg, var(--lp-navy-deep) 0%, var(--lp-navy) 55%, #0d3f86 100%);
  overflow: hidden;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}

.auth-hero > .container {
  position: relative;
  z-index: 1;
  padding-inline: var(--fo-gouttiere, 1.25rem);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: start;
}

.auth-page--wide .auth-grid {
  grid-template-columns: minmax(16rem, .85fr) minmax(0, 1.35fr);
}

.auth-aside {
  color: #fff;
  padding-top: .25rem;
}

.auth-aside h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.auth-lead {
  color: rgba(255, 255, 255, .88);
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.auth-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .85rem;
  color: #fff;
  font-weight: 600;
}

.auth-points i {
  color: var(--lp-gold);
  margin-top: .2rem;
}

.auth-card {
  background: #fff;
  border: 2px solid var(--lp-line);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow-lg);
  padding: 2rem 2.1rem 2.2rem;
}

.auth-card h2 {
  font-size: 1.55rem;
  margin-bottom: .35rem;
}

.auth-card-sub {
  color: var(--lp-muted);
  margin-bottom: 1.5rem;
}

.auth-field {
  margin-bottom: 1.15rem;
}

.auth-field label {
  display: block;
  font-weight: 700;
  color: var(--lp-navy);
  margin-bottom: .45rem;
}

.auth-field .auth-required {
  color: #b45309;
}

.auth-input {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--lp-line);
  border-radius: 14px;
  background: #fff;
  min-height: 56px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-input:focus-within {
  border-color: var(--lp-blue);
  box-shadow: 0 0 0 4px rgba(0, 132, 234, .14);
}

.auth-input.is-invalid {
  border-color: #dc2626;
}

.auth-input-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  color: var(--lp-muted);
  flex-shrink: 0;
}

.auth-input .form-control,
.auth-input .form-select {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: .85rem .85rem .85rem 0;
  font-size: 1.02rem;
}

.auth-input .form-control:focus,
.auth-input .form-select:focus {
  box-shadow: none;
  background: transparent;
}

.auth-input .form-select {
  max-width: 11.5rem;
  border-right: 1px solid var(--lp-line);
  padding-right: .5rem;
  flex: 0 0 auto;
}

.auth-toggle {
  border: 0;
  background: transparent;
  color: var(--lp-muted);
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-toggle:hover,
.auth-toggle:focus-visible {
  color: var(--lp-blue-dark);
}

.auth-help,
.auth-error {
  font-size: .9rem;
  margin-top: .35rem;
}

.auth-help { color: var(--lp-muted); }
.auth-error { color: #b91c1c; }

.auth-submit {
  width: 100%;
  margin-top: .4rem;
}

.auth-links {
  margin-top: 1.4rem;
  text-align: center;
  color: var(--lp-muted);
}

.auth-links a {
  color: var(--lp-blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover,
.auth-links a:focus-visible {
  color: var(--lp-navy);
  text-decoration: underline;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  color: var(--lp-blue-dark);
  text-decoration: none;
  margin-bottom: 1rem;
}

.auth-back:hover { color: var(--lp-navy); }

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 1.25rem 0 1.4rem;
}

.auth-check input {
  margin-top: .3rem;
  width: 1.15rem;
  height: 1.15rem;
}

.auth-check label {
  color: var(--lp-ink);
  font-size: .98rem;
}

.auth-reqs {
  background: var(--lp-soft);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: .75rem 1rem;
  margin-top: .5rem;
}

.auth-reqs small {
  display: block;
  color: var(--lp-muted);
  font-weight: 600;
  margin-bottom: .35rem;
}

.auth-reqs li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  color: var(--lp-muted);
}

.auth-reqs li.is-ok { color: var(--lp-green); }
.auth-reqs li.is-ko { color: #b91c1c; }

.auth-match {
  margin-top: .45rem;
  font-size: .88rem;
  color: var(--lp-muted);
}

.auth-match.is-ok { color: var(--lp-green); }
.auth-match.is-ko { color: #b91c1c; }

@media (max-width: 991.98px) {
  .auth-grid,
  .auth-page--wide .auth-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .auth-hero { padding-top: calc(70px + 1.75rem); }
}

@media (max-width: 575.98px) {
  .auth-card { padding: 1.4rem 1.2rem 1.6rem; }
  .auth-input .form-select { max-width: 8.5rem; }
}

[data-fo-theme="dark"] .auth-card {
  background: #0f2440;
  border-color: #2a3f5f;
}

[data-fo-theme="dark"] .auth-card h2,
[data-fo-theme="dark"] .auth-field label { color: #f2f6fb; }

[data-fo-theme="dark"] .auth-input {
  background: #10203a;
  border-color: #2a3f5f;
}

[data-fo-theme="dark"] .auth-input .form-control,
[data-fo-theme="dark"] .auth-input .form-select {
  color: #e8eef7;
}

[data-fo-theme="dark"] .auth-reqs {
  background: #10203a;
  border-color: #2a3f5f;
}

@media (prefers-reduced-motion: reduce) {
  .auth-input, .auth-card { transition: none; }
}
