/* ───────────────────────────────────────────────────────
   LMS LOGIN — Style international Stripe / Linear / Vercel
   FR par defaut, EN accessible via switcher top-right
   ─────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1F4D3D;
  min-height: 100vh;
  color: #F5F0E1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lms-login-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
}

/* ─── SWITCHER LANGUE (top-right, absolute) ─── */
.lang-switcher {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: rgba(31, 77, 61, 0.92);
  padding: 8px 14px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 137, 62, 0.18);
}

.lang-current {
  color: #B8893E;
  font-weight: 600;
}

.lang-sep {
  color: rgba(245, 240, 225, 0.4);
}

.lang-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.lang-btn {
  background: transparent;
  border: 0;
  color: rgba(245, 240, 225, 0.65);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  padding: 0;
  transition: color 0.15s ease;
}

.lang-btn:hover {
  color: #F5F0E1;
}

/* ─── PANNEAU GAUCHE (editorial, dark green) ─── */
.lms-login-editorial {
  background: linear-gradient(135deg, #0E1F19 0%, #1F4D3D 60%, #2A6650 100%);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid */
.lms-login-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 168, 98, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom right, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom right, black 0%, transparent 80%);
}

/* Soft gold radial glow bottom-right */
.lms-login-editorial::after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 137, 62, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.editorial-header {
  position: relative;
  z-index: 2;
}

.editorial-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.editorial-brand {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #F5F0E1;
  letter-spacing: -0.01em;
}

.editorial-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #B8893E;
  font-weight: 500;
}

.editorial-content {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  margin-bottom: 40px;
  max-width: 560px;
}

.editorial-headline {
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #FBF7EC;
  margin-bottom: 24px;
}

.editorial-headline em {
  font-style: normal;
  color: #B8893E;
  font-weight: 600;
}

.editorial-tagline {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(245, 240, 225, 0.65);
  margin-bottom: 36px;
  max-width: 520px;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.editorial-features {
  list-style: none;
  margin-bottom: 36px;
}

.editorial-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 9px 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245, 240, 225, 0.85);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.feature-arrow {
  color: #B8893E;
  font-weight: 500;
  flex-shrink: 0;
  width: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.editorial-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.btn-primary-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F5F0E1;
  color: #0E1F19;
  padding: 11px 20px;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid #F5F0E1;
  letter-spacing: -0.005em;
}

.btn-primary-light:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F5F0E1;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border: 1px solid rgba(245, 240, 225, 0.2);
  border-radius: 7px;
  background: transparent;
  transition: all 0.15s ease;
  letter-spacing: -0.005em;
}

.btn-secondary-link:hover {
  border-color: rgba(245, 240, 225, 0.5);
  background: rgba(245, 240, 225, 0.04);
}

.editorial-footer {
  position: relative;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 225, 0.4);
}

.editorial-footer a {
  color: rgba(245, 240, 225, 0.55);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.15s;
}

.editorial-footer a:hover {
  color: #F5F0E1;
  border-bottom-color: rgba(245, 240, 225, 0.4);
}


/* ─── PANNEAU DROIT (formulaire, cream) ─── */
.lms-login-form-side {
  background: #F5F0E1;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.back-link {
  position: absolute;
  top: 28px;
  left: 60px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #5A6478;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  letter-spacing: -0.005em;
}

.back-link:hover {
  color: #1F4D3D;
}

.form-content {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.form-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #B8893E;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow-mark {
  font-size: 10px;
  letter-spacing: 0;
}

.form-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 38px;
  font-weight: 500;
  color: #1F4D3D;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.form-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #5A6478;
  margin-bottom: 32px;
  letter-spacing: -0.005em;
}

.alert-error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-left: 3px solid #C0392B;
  color: #7a2725;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
  font-weight: 500;
}

.login-form .form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #1A1F2E;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.form-field input {
  width: 100%;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: white;
  border: 1px solid rgba(184, 137, 62, 0.25);
  border-radius: 6px;
  color: #1A1F2E;
  transition: all 0.15s ease;
  letter-spacing: -0.005em;
}

.form-field input:focus {
  outline: none;
  border-color: #B8893E;
  box-shadow: 0 0 0 3px rgba(184, 137, 62, 0.12);
}

.form-field input::placeholder {
  color: rgba(90, 100, 120, 0.5);
}

.form-submit {
  width: 100%;
  padding: 13px;
  background: #1F4D3D;
  color: #F5F0E1;
  border: 0;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit:hover {
  background: #2A6650;
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-help {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
}

.help-link {
  color: #5A6478;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.15s ease;
  font-weight: 500;
}

.help-link:hover {
  color: #1F4D3D;
  border-bottom-color: rgba(184, 137, 62, 0.4);
}

/* ─── DIVIDER + SECTION SIGN-UP ─── */
.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 20px;
  color: rgba(90, 100, 120, 0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(184, 137, 62, 0.2);
}

.form-signup {
  text-align: center;
}

.form-signup p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #5A6478;
  margin-bottom: 12px;
  line-height: 1.5;
}

.signup-link {
  display: inline-block;
  color: #1F4D3D;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid #B8893E;
  padding-bottom: 2px;
  transition: all 0.15s ease;
  letter-spacing: -0.005em;
}

.signup-link:hover {
  color: #2A6650;
}


/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .lms-login-container {
    grid-template-columns: 1fr;
  }

  .lms-login-editorial {
    padding: 40px 32px 60px;
    min-height: 70vh;
  }

  .editorial-headline {
    font-size: 40px;
  }

  .lms-login-form-side {
    padding: 60px 32px 40px;
  }

  .back-link {
    top: 24px;
    left: 32px;
  }

  .lang-switcher {
    top: 20px;
    right: 24px;
  }
}

@media (max-width: 640px) {
  .lms-login-editorial {
    padding: 32px 24px 48px;
  }

  .editorial-headline {
    font-size: 32px;
  }

  .editorial-tagline {
    font-size: 15px;
  }

  .editorial-features li {
    font-size: 14px;
  }

  .editorial-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary-light,
  .btn-secondary-link {
    text-align: center;
    justify-content: center;
  }

  .lms-login-form-side {
    padding: 60px 24px 32px;
  }

  .form-title {
    font-size: 32px;
  }
}
