/* ── EduCycle Auth Pages — Split Layout ───────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

.auth-body {
  min-height: 100vh;
  display: flex;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
}

/* ── Panneau gauche (branding) ────────────────────────────── */
.auth-panel-left {
  width: 42%;
  background: linear-gradient(155deg, #1e40af 0%, #2563eb 45%, #3b82f6 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}

/* Cercles décoratifs */
.auth-panel-left::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  bottom: -80px; right: -80px;
}
.auth-panel-left::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -40px; left: -40px;
}

.auth-brand {
  position: relative;
  z-index: 1;
}
.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.auth-brand-logo-mark {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
}
.auth-brand-logo-mark svg {
  width: 22px; height: 22px;
  fill: #fff;
}
.auth-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
}
.auth-brand-headline {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -.03em;
  margin: 0 0 16px;
}
.auth-brand-headline span {
  color: rgba(255,255,255,.65);
  font-weight: 400;
}
.auth-brand-sub {
  font-size: .92rem;
  color: rgba(255,255,255,.70);
  line-height: 1.6;
  margin: 0;
}

/* Grand E décoratif */
.auth-deco-letter {
  position: absolute;
  bottom: 48px;
  right: 32px;
  font-size: 11rem;
  font-weight: 800;
  color: rgba(255,255,255,.08);
  line-height: 1;
  letter-spacing: -.05em;
  user-select: none;
  z-index: 0;
}

.auth-brand-footer {
  position: relative;
  z-index: 1;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
}

/* ── Panneau droit (formulaire) ───────────────────────────── */
.auth-panel-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: #fff;
}

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

.auth-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.03em;
  margin: 0 0 6px;
}
.auth-subheading {
  font-size: .88rem;
  color: #64748b;
  margin: 0 0 36px;
}

/* Champs avec underline */
.auth-field {
  margin-bottom: 24px;
  position: relative;
}
.auth-field label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.auth-field input {
  width: 100%;
  padding: 8px 0 10px;
  border: none;
  border-bottom: 1.5px solid #e2e8f0;
  border-radius: 0;
  font-size: .95rem;
  color: #0f172a;
  background: transparent;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.auth-field input:focus {
  border-bottom-color: #2563eb;
}
.auth-field input::placeholder { color: #cbd5e1; }

.auth-field-error {
  display: block;
  font-size: .75rem;
  color: #dc2626;
  margin-top: 4px;
}

/* Alertes */
.auth-alert-error {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  color: #dc2626;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .85rem;
  margin-bottom: 24px;
}
.auth-alert-success {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  color: #15803d;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .85rem;
  margin-bottom: 24px;
}

/* Remember me */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: .85rem;
  color: #64748b;
  cursor: pointer;
}
.auth-remember input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

/* Bouton */
.auth-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
  font-family: inherit;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
}
.auth-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }

/* Lien pied de formulaire */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: .85rem;
  color: #64748b;
}
.auth-footer a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* Responsive — mobile : colonne unique */
@media (max-width: 768px) {
  .auth-body { flex-direction: column; }
  .auth-panel-left {
    width: 100%;
    padding: 32px 28px;
    min-height: 220px;
  }
  .auth-brand-headline { font-size: 1.4rem; }
  .auth-deco-letter { font-size: 6rem; bottom: 16px; right: 16px; }
  .auth-brand-content { padding: 16px 0; }
  .auth-panel-right { padding: 36px 24px; }
}

/* 
   RegisterPending — Confirmation e-mail */

.auth-form-wrap{

  width:100%;

  max-width:480px;
}

.auth-form-wrap-center{

  display:flex;

  flex-direction:column;

  justify-content:center;

  gap:0;
}

.auth-panel-right{

  flex:1;

  display:flex;

  align-items:center;

  justify-content:center;

  padding:48px 40px;

  background:
  linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fbff 100%
  );

  position:relative;

  overflow:hidden;
}

.auth-panel-right::before{

  content:"";

  position:absolute;

  left:0;
  top:0;

  width:1px;
  height:100%;

  background:
  linear-gradient(
    to bottom,
    transparent,
    rgba(148,163,184,.18),
    transparent
  );
}

.auth-panel-right::after{

  content:"";

  position:absolute;

  top:-120px;
  right:-120px;

  width:320px;
  height:320px;

  border-radius:50%;

  background:
  radial-gradient(
    circle,
    rgba(37,99,235,.05),
    transparent 70%
  );

  pointer-events:none;
}

.auth-mail-icon{

  width:92px;

  height:92px;

  margin:0 auto 30px;

  border-radius:28px;

  background:
  linear-gradient(
    135deg,
    #2563eb,
    #5b8def
  );

  display:flex;

  align-items:center;

  justify-content:center;

  color:white;

  border:1px solid rgba(255,255,255,.18);

  backdrop-filter:blur(10px);

  box-shadow:
  0 16px 34px rgba(37,99,235,.24);
}

.auth-mail-icon svg{

  width:42px;

  height:42px;
}

.auth-heading{

  font-size:2.2rem;

  line-height:1.1;

  text-align:center;

  margin-bottom:12px;
}

.auth-subheading-wide{

  max-width:460px;

  margin:0 auto 22px;

  text-align:center;

  font-size:1rem;

  line-height:1.6;
}

.auth-email-box{

  background:#eff6ff;

  color:#2563eb;

  border-radius:18px;

  padding:18px 20px;

  font-size:1rem;

  font-weight:600;

  margin-bottom:24px;

  text-align:center;

  word-break:break-word;

  border:
  1px solid rgba(37,99,235,.08);

  box-shadow:
  inset 0 1px 0 rgba(255,255,255,.7);
}

.auth-alert-success{

  border-left:4px solid #16a34a;

  border-radius:14px;

  padding:18px 18px;

  font-size:.96rem;

  line-height:1.65;

  margin-bottom:28px;

  box-shadow:
  0 4px 14px rgba(22,163,74,.05);
}

.auth-btn{

  margin-top:4px;

  min-height:54px;

  border-radius:14px;

  font-size:1rem;

  font-weight:600;

  transition:
  transform .18s ease,
  box-shadow .18s ease,
  background .18s ease;
}

.auth-btn:hover{

  background:#1d4ed8;

  transform:translateY(-2px);

  box-shadow:
  0 14px 28px rgba(37,99,235,.24);
}

.auth-btn-link{

  text-decoration:none;

  display:flex;

  align-items:center;

  justify-content:center;
}