/* ============================================================
   BDF — Page de connexion professionnelle (split-panel)
   Variables BDF : color-local.css
   Typo : --t-* dans local-theme.css
   ============================================================ */

:root {
  --auth-brand-bg: var(--bdf-marine);
  --auth-brand-bg2: var(--bdf-marine-deep);
  --auth-accent: var(--bdf-orange);
  --auth-accent-hover: var(--bdf-orange-hover);
  --auth-accent-lt: rgba(255, 102, 34, 0.12);
  --auth-bg: var(--bdf-gris-fond);
}

/* --- Layout split-panel --- */

.auth-layout {
  display: flex;
  min-height: 100vh;
  font-family: 'Exo 2', sans-serif;
}

.auth-redirect {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1.5rem;
  font-size: var(--t-base);
}

/* --- Panneau gauche (brand) --- */

.auth-brand {
  flex: 0 0 44%;
  max-width: 44%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(175deg, var(--auth-brand-bg) 0%, var(--auth-brand-bg2) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 102, 34, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand__logo {
  width: 100%;
  display: block;
  margin-bottom: 1rem;
}

.auth-brand__logo img {
  height: 40px;
  width: auto;
}

.auth-brand__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.auth-brand__tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--auth-accent);
  color: #fff;
  font-family: 'Michroma', sans-serif;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.auth-brand__title {
  font-family: 'Michroma', sans-serif;
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  color: #fff;
}

.auth-brand__title strong {
  color: var(--auth-accent);
  font-weight: 600;
}

.auth-brand__subtitle {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem;
}

.auth-brand__divider {
  width: 50px;
  height: 2px;
  background: var(--auth-accent);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

/* --- Piliers (avantages) --- */

.auth-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.auth-pillar:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-pillar__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--auth-accent);
  margin-top: 1px;
}

.auth-pillar__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-pillar__text {
  font-size: var(--t-sm);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Footer brand --- */

.auth-brand__footer {
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
}

/* --- Panneau droit (formulaire) --- */

.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--auth-bg);
  padding: 2.5rem;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

/* --- Header formulaire --- */

.auth-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--auth-accent-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-accent);
}

.auth-form-icon svg {
  width: 28px;
  height: 28px;
}

.auth-form-header h1 {
  font-family: 'Michroma', sans-serif;
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--bdf-dark);
  margin: 0 0 0.5rem;
}

.auth-form-header p {
  font-size: var(--t-sm);
  color: var(--bdf-texte-muted);
  margin: 0;
}

/* --- Messages systeme --- */

.auth-messages {
  margin-bottom: 1.5rem;
}

.auth-messages .messages {
  border-radius: 6px;
  font-size: var(--t-sm);
}

/* --- Formulaire Drupal --- */

.auth-form-content .form-item {
  margin-bottom: 1.25rem;
}

.auth-form-content .form-item label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--bdf-dark);
  margin-bottom: 0.4rem;
}

.auth-form-content .form-item .form-text,
.auth-form-content .form-item .form-email {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--bdf-gris-bord-lt);
  border-radius: 6px;
  font-size: var(--t-base);
  font-family: 'Exo 2', sans-serif;
  background: #fff;
  color: var(--bdf-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form-content .form-item .form-text:focus,
.auth-form-content .form-item .form-email:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px var(--auth-accent-lt);
}

.auth-form-content .form-item .description {
  font-size: var(--t-xs);
  color: var(--bdf-texte-muted);
  margin-top: 0.3rem;
}

.auth-form-content .form-actions {
  margin-top: 1.5rem;
}

.auth-form-content .form-actions .form-submit,
.auth-form-content .form-actions .button {
  width: 100%;
  border-radius: 6px;
  font-family: 'Michroma', sans-serif;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* --- Separateur --- */

.auth-sep {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  gap: 1rem;
}

.auth-sep::before,
.auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bdf-gris-bord-lt);
}

.auth-sep span {
  font-size: var(--t-sm);
  color: var(--bdf-texte-muted);
  white-space: nowrap;
}

/* --- Notice (demande de compte) --- */

.auth-notice {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--bdf-gris-bord-lt);
  border-left: 3px solid var(--auth-accent);
  border-radius: 6px;
}

.auth-notice__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--auth-accent);
  margin-top: 2px;
}

.auth-notice__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-notice__text p {
  font-size: var(--t-sm);
  color: var(--bdf-texte-sombre);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.auth-notice__text a.mt-button.mt-button--outline {
  font-size: var(--t-xs);
  padding: 10px 24px;
  color: var(--auth-accent);
  border-color: var(--auth-accent);
  background-color: transparent;
  box-shadow: none;
}

.auth-notice__text a.mt-button.mt-button--outline:hover {
  padding-right: 43px;
  padding-left: 14px;
  background-color: var(--auth-accent);
  border-color: var(--auth-accent);
  color: #fff;
}

.auth-notice__text a.mt-button.mt-button--outline:hover:after {
  color: #fff;
}

/* --- Footer formulaire --- */

.auth-form-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-form-footer a {
  font-size: var(--t-sm);
  color: var(--bdf-bleu);
  text-decoration: none !important;
  transition: color 0.2s;
}

.auth-form-footer a:hover {
  color: var(--auth-accent) !important;
  text-decoration: underline !important;
}

/* --- Reset darkplus overrides sur cette page --- */

.page-user-login .page-container,
.page-user-login .header-container,
.page-user-login .footers-container,
.page-user-login .header,
.page-user-login .footer,
.page-user-login .header-top,
.page-user-login .subfooter,
.page-user-login .banner,
.page-user-login .hero-top,
.page-user-login .main-content,
.page-user-login .system-messages,
.page-user-login .breadcrumb-container {
  display: none !important;
}

/* --- Responsive --- */

@media (max-width: 960px) {
  .auth-layout {
    flex-direction: column;
  }

  .auth-brand {
    flex: none;
    max-width: 100%;
    padding: 2rem 1.5rem 1.5rem;
  }

  .auth-brand__subtitle {
    display: none;
  }

  .auth-pillars {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .auth-pillar {
    width: calc(50% - 0.25rem);
  }

  .auth-form-panel {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-pillar {
    width: 100%;
  }

  .auth-brand__title {
    font-size: var(--t-lg);
  }
}
