/* ═══════════════════════════════════════════════════════════
   AUTH PREMIUM V4 — Dark Luxury Restaurant
   Design référence : Maison Saclay · Dark · Gold · Serif
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,300;1,400&display=swap');

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

:root {
  --bg:            #171210;
  --bg-surface:    #1f1b17;
  --bg-input:      rgba(255,255,255,.065);
  --bg-input-hover:rgba(255,255,255,.09);
  --border:        rgba(255,255,255,.12);
  --border-focus:  rgba(198,162,100,.7);
  --text:          rgba(255,255,255,.88);
  --text-sub:      rgba(255,255,255,.44);
  --text-muted:    rgba(255,255,255,.24);
  --gold:          #c6a264;
  --gold-light:    #ddb97c;
  --gold-dim:      rgba(198,162,100,.55);
}

.auth-body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* ════════════════════════════════════════════
   DESKTOP — Split screen
════════════════════════════════════════════ */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 100vh;
}

/* ── Panneau gauche — photo atmosphère ── */
.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 56px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.auth-panel__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    168deg,
    rgba(10,7,5,.82) 0%,
    rgba(10,7,5,.40) 35%,
    rgba(10,7,5,.55) 68%,
    rgba(10,7,5,.94) 100%
  );
}

.auth-panel__orb { display: none; }
.auth-panel::before { display: none; }

.auth-panel__top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
}

.auth-panel__brand { display: flex; align-items: center; gap: 14px; }

.auth-panel__logo {
  width: 48px; height: 48px; border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  display: block; flex-shrink: 0;
}
.auth-panel__logo-text {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}

.auth-panel__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px; font-weight: 500;
  color: rgba(255,255,255,.9); letter-spacing: -.01em;
  line-height: 1;
}

.auth-panel__back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.32); text-decoration: none;
  letter-spacing: .04em; text-transform: uppercase;
  transition: color .18s ease;
}
.auth-panel__back:hover { color: rgba(255,255,255,.7); }

.auth-panel__center { position: relative; z-index: 2; }

.auth-panel__eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: var(--gold-dim);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.auth-panel__eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--gold-dim);
}

.auth-panel__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.5rem, 5vw, 6rem);
  font-weight: 400; font-style: italic;
  letter-spacing: -.02em; line-height: .88;
  color: #fff; margin: 0 0 22px;
}
.auth-panel__title em {
  font-style: normal; font-weight: 300;
  color: rgba(255,255,255,.45); display: block;
}

.auth-panel__tagline {
  font-size: .92rem; color: rgba(255,255,255,.38);
  line-height: 1.8; font-weight: 400; max-width: 340px;
  letter-spacing: .01em;
}

.auth-panel__footer {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.auth-panel__proof { display: flex; flex-direction: column; gap: 6px; }
.auth-panel__proof-line {
  font-size: .72rem; color: rgba(255,255,255,.22);
  font-weight: 400; letter-spacing: .01em;
}
.auth-panel__proof-line strong { color: rgba(255,255,255,.38); font-weight: 600; }
.auth-panel__stars { color: rgba(198,162,100,.45); font-size: .7rem; letter-spacing: .1em; }

/* ── Panneau droit — formulaire dark ── */
.auth-divider {
  position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.06) 20%, rgba(255,255,255,.06) 80%, transparent);
  pointer-events: none;
}

.auth-form-panel {
  position: relative;
  background: var(--bg-surface);
  display: flex; flex-direction: column;
}

.auth-form-panel__inner {
  flex: 1; padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto;
}

/* ── Brand dans le panel droit (desktop) ── */
.auth-form-panel .auth-panel__brand-desktop {
  margin-bottom: 48px;
}

/* ── Tabs desktop — underline gold ── */
.auth-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 40px;
}
.auth-tab {
  flex: 1; text-align: center;
  padding-bottom: 14px;
  font-size: .72rem; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  letter-spacing: .14em; text-transform: uppercase;
  transition: color .18s ease, border-color .18s ease;
}
.auth-tab:hover:not(.is-active) { color: rgba(255,255,255,.52); }
.auth-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* ── Heading desktop ── */
.auth-heading { margin-bottom: 32px; }
.auth-heading__kicker {
  font-size: .68rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px; display: block;
  opacity: .85;
}
.auth-heading__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400; font-style: italic;
  letter-spacing: -.01em; line-height: .93;
  color: var(--text); margin: 0;
}

/* ── Fields desktop ── */
.auth-fields { display: flex; flex-direction: column; gap: 16px; }
.auth-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }

.auth-field label {
  font-size: .63rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-sub);
}
.auth-field label .opt {
  font-weight: 400; text-transform: none;
  letter-spacing: 0; color: var(--text-muted);
  font-size: .6rem; margin-left: 3px;
}

.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-icon {
  position: absolute; left: 0;
  color: rgba(255,255,255,.2); pointer-events: none; display: flex;
  transition: color .18s ease;
}
.auth-input-wrap:focus-within .auth-input-icon { color: var(--gold); }

.auth-input-wrap input {
  width: 100%; height: 48px;
  padding: 0 0 0 26px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .96rem; color: var(--text); font-weight: 400;
  font-family: inherit; outline: none; border-radius: 0;
  -webkit-appearance: none;
  transition: border-color .18s ease;
  letter-spacing: .01em;
}
.auth-input-wrap input:focus { border-bottom-color: var(--gold); }
.auth-input-wrap input::placeholder { color: rgba(255,255,255,.2); font-weight: 400; }

.auth-legal {
  font-size: .66rem; color: rgba(255,255,255,.28);
  line-height: 1.65; margin: 0; letter-spacing: .01em;
}
.auth-legal a { color: var(--gold); text-decoration: none; opacity: .85; }
.auth-legal a:hover { opacity: 1; }

/* ── CTA desktop — or champagne ── */
.auth-cta {
  width: 100%; height: 52px;
  background: var(--gold);
  color: #130f0a;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase;
  border: none; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 0 24px; border-radius: 0;
  transition: background .2s ease, transform .15s ease;
  position: relative; overflow: hidden; text-decoration: none;
}
.auth-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.auth-cta:active { transform: translateY(0); }
.auth-cta__text { position: relative; z-index: 1; }
.auth-cta__arrow { display: none; }

.auth-switch {
  text-align: center; font-size: .7rem;
  color: rgba(255,255,255,.3); font-weight: 400;
  margin: 0; letter-spacing: .01em;
}
.auth-switch a { color: rgba(255,255,255,.6); font-weight: 500; text-decoration: none; }
.auth-switch a:hover { color: rgba(255,255,255,.85); }

/* Flash */
.auth-flash {
  padding: 11px 15px; border-radius: 6px;
  font-size: .8rem; font-weight: 500; line-height: 1.5; margin-bottom: 18px;
}
.auth-flash--success {
  background: rgba(198,162,100,.1);
  border: 1px solid rgba(198,162,100,.25); color: var(--gold-light);
}
.auth-flash--error {
  background: rgba(220,80,60,.08);
  border: 1px solid rgba(220,80,60,.2); color: #e07060;
}


/* ════════════════════════════════════════════════════════
   MOBILE — Dark luxury premium
   !important pour écraser public.css
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .auth-body { background: var(--bg) !important; }

  .auth-split {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
  }

  /* ── Hero photo ── */
  .auth-panel {
    min-height: 48vh !important;
    max-height: 56vh !important;
    padding: 0 !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    background-position: center 30% !important;
    flex-shrink: 0 !important;
  }
  .auth-panel::before { display: none !important; }
  .auth-panel__orb { display: none !important; }

  .auth-panel__overlay {
    background: linear-gradient(
      180deg,
      rgba(10,7,5,.72) 0%,
      rgba(10,7,5,.18) 26%,
      rgba(10,7,5,.45) 60%,
      rgba(10,7,5,.98) 100%
    ) !important;
  }

  /* Nav flottante sur photo */
  .auth-panel__top {
    position: absolute !important;
    top: 0; left: 0; right: 0;
    padding: 18px 20px !important;
    z-index: 5;
  }
  .auth-panel__logo {
    width: 38px !important; height: 38px !important;
    border-radius: 10px !important;
  }
  .auth-panel__logo-text {
    width: 38px !important; height: 38px !important;
    border-radius: 10px !important; font-size: 17px !important;
  }
  .auth-panel__name {
    font-size: 18px !important;
    color: rgba(255,255,255,.88) !important;
  }
  .auth-panel__back {
    font-size: 11px !important;
    color: rgba(255,255,255,.3) !important;
  }

  /* Texte centré bas de photo */
  .auth-panel__center {
    padding: 0 24px 36px !important;
    text-align: center !important;
    position: relative !important; z-index: 3 !important;
  }
  .auth-panel__eyebrow {
    font-size: 9px !important; letter-spacing: .25em !important;
    justify-content: center !important; margin-bottom: 10px !important;
    color: var(--gold-dim) !important;
  }
  .auth-panel__eyebrow::before { display: none !important; }
  .auth-panel__title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 2.9rem !important; font-style: italic !important;
    font-weight: 400 !important;
    text-align: center !important; margin-bottom: 6px !important;
    line-height: .9 !important;
  }
  .auth-panel__tagline {
    font-size: .8rem !important; text-align: center !important;
    max-width: 100% !important;
    color: rgba(255,255,255,.38) !important;
    letter-spacing: .01em !important;
  }
  .auth-panel__footer { display: none !important; }

  /* ── Bottom-sheet sombre ── */
  .auth-form-panel {
    flex: 1 !important;
    background: var(--bg-surface) !important;
    border-radius: 22px 22px 0 0 !important;
    margin-top: -24px !important;
    position: relative !important; z-index: 4 !important;
    box-shadow: 0 -4px 40px rgba(0,0,0,.45) !important;
    display: flex !important; flex-direction: column !important;
  }

  /* Handle */
  .auth-form-panel::before {
    content: '' !important;
    display: block !important;
    width: 34px !important; height: 3px !important;
    border-radius: 2px !important;
    background: rgba(255,255,255,.12) !important;
    margin: 12px auto 0 !important;
    flex-shrink: 0 !important;
  }

  .auth-divider { display: none !important; }

  .auth-form-panel__inner {
    padding: 20px 22px 48px !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    flex: 1 !important;
  }

  /* ── Tabs mobile — underline gold ── */
  .auth-tabs {
    display: flex !important;
    gap: 0 !important;
    background: none !important;
    border: none !important; padding: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 0 !important;
    margin-bottom: 28px !important;
  }
  .auth-tab {
    flex: 1 !important; text-align: center !important;
    padding: 0 0 13px !important;
    font-size: .68rem !important; font-weight: 600 !important;
    color: var(--text-muted) !important; text-decoration: none !important;
    border-bottom: 1.5px solid transparent !important;
    margin-bottom: -1px !important;
    letter-spacing: .14em !important; text-transform: uppercase !important;
    transition: color .18s ease, border-color .18s ease !important;
    background: none !important; box-shadow: none !important;
    border-radius: 0 !important;
  }
  .auth-tab:hover:not(.is-active) { color: rgba(255,255,255,.52) !important; }
  .auth-tab.is-active {
    color: var(--text) !important;
    border-bottom-color: var(--gold) !important;
    background: none !important; box-shadow: none !important;
  }

  /* ── Heading mobile ── */
  .auth-heading { margin-bottom: 24px !important; }
  .auth-heading__kicker {
    font-size: .63rem !important; letter-spacing: .22em !important;
    margin-bottom: 9px !important; color: var(--gold) !important;
    opacity: .85 !important; display: block !important;
  }
  .auth-heading__kicker::before { display: none !important; }
  .auth-heading__title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 2.1rem !important;
    font-weight: 400 !important; font-style: italic !important;
    letter-spacing: -.01em !important; line-height: .93 !important;
    color: var(--text) !important;
  }

  /* ── Fields mobile ── */
  .auth-fields { display: flex !important; flex-direction: column !important; gap: 12px !important; }
  .auth-fields-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .auth-field { display: flex !important; flex-direction: column !important; gap: 6px !important; }

  .auth-field label {
    font-size: .6rem !important; font-weight: 600 !important;
    letter-spacing: .14em !important; text-transform: uppercase !important;
    color: var(--text-sub) !important;
  }

  /* Input — dark underline + fond sombre */
  .auth-input-wrap {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: border-color .18s ease !important;
    box-shadow: none !important;
  }
  .auth-input-wrap:focus-within {
    border-color: var(--border-focus) !important;
    background: var(--bg-input-hover) !important;
  }

  .auth-input-icon {
    left: 14px !important;
    color: rgba(255,255,255,.2) !important; z-index: 1 !important;
  }
  .auth-input-wrap:focus-within .auth-input-icon { color: var(--gold) !important; }

  .auth-input-wrap input {
    height: 52px !important;
    padding: 0 14px 0 42px !important;
    background: transparent !important;
    border: none !important; border-radius: 0 !important;
    font-size: .96rem !important; color: var(--text) !important;
    font-weight: 400 !important; letter-spacing: .01em !important;
    font-family: Inter, system-ui, sans-serif !important;
    outline: none !important; -webkit-appearance: none !important;
    width: 100% !important; box-shadow: none !important;
  }
  .auth-input-wrap input:focus {
    border: none !important; background: transparent !important;
    box-shadow: none !important; outline: none !important;
  }
  .auth-input-wrap input::placeholder {
    color: rgba(255,255,255,.2) !important; font-weight: 400 !important;
  }

  /* Autocomplete dark */
  .auth-input-wrap input:-webkit-autofill,
  .auth-input-wrap input:-webkit-autofill:hover,
  .auth-input-wrap input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #2a2018 inset !important;
    -webkit-text-fill-color: rgba(255,255,255,.88) !important;
    border: none !important;
  }

  .auth-legal {
    font-size: .63rem !important;
    color: rgba(255,255,255,.25) !important;
    margin: 8px 0 16px !important; line-height: 1.65 !important;
  }
  .auth-legal a { color: var(--gold) !important; opacity: .8 !important; }

  /* ── CTA mobile — or ── */
  .auth-cta {
    width: 100% !important;
    height: 52px !important;
    border-radius: 8px !important;
    font-size: .72rem !important; font-weight: 700 !important;
    letter-spacing: .18em !important; text-transform: uppercase !important;
    padding: 0 24px !important;
    border: none !important;
    background: var(--gold) !important;
    color: #130f0a !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 0 !important;
    cursor: pointer !important; font-family: Inter, system-ui, sans-serif !important;
    text-decoration: none !important;
    transition: background .2s ease, transform .15s ease !important;
    box-shadow: none !important;
    margin-bottom: 18px !important;
  }
  .auth-cta:active { transform: scale(.98) !important; }
  .auth-cta::before { display: none !important; }
  .auth-cta__arrow { display: none !important; }

  /* ── Switch ── */
  .auth-switch {
    text-align: center !important;
    font-size: .72rem !important;
    color: rgba(255,255,255,.28) !important;
    font-weight: 400 !important;
    letter-spacing: .01em !important;
  }
  .auth-switch a {
    color: rgba(255,255,255,.55) !important;
    font-weight: 500 !important; text-decoration: none !important;
  }
}

@media (max-width: 390px) {
  .auth-panel { min-height: 44vh !important; }
  .auth-panel__title { font-size: 2.5rem !important; }
  .auth-form-panel__inner { padding: 18px 18px 40px !important; }
  .auth-fields-row { grid-template-columns: 1fr !important; }
}
