/* ══════════════════════════════════════════════════════════════
   Unibox 360 — Connexion / Inscription
   Feuille de style externe (extraite du <style> du fichier HTML)
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #3B5BFF;
  --brand-2:      #7C3AFF;
  --brand-teal:   #06B6D4;
  --brand-amber:  #F59E0B;
  --bg:           #070B1A;
  --border:       rgba(59,91,255,0.16);
  --border-hover: rgba(59,91,255,0.55);
  --text:         #E8ECFF;
  --muted:        #4A5280;
  --label:        #7880A8;
  --input-bg:     rgba(255,255,255,0.035);

  /* additive vars required by shared nav/footer (from agent-login.html) */
  --accent:       #3B5BFF;
  --accent2:      #06B6D4;
  --text2:        rgba(232,236,255,.65);
  --surface:      #0d1a2e;
  --surface2:     #0f2040;
  --shadow:       rgba(0,0,0,.4);
  --glow:         rgba(59,91,255,.20);
}

html, body { height: 100%; }

body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Single centered column — the brand panel was removed in favor of a
   plain centered card (matches Stripe/Linear/Vercel-style auth pages),
   so this wrapper just centers .right-panel full-width instead of
   splitting into two columns. */
.page-columns {
  display: flex;
  min-height: calc(100vh - 68px);
}



@media (prefers-reduced-motion: reduce) {
  .form-wrap, .form-wrap * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ══════════════════════════════
   RIGHT — form
══════════════════════════════ */
.right-panel {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 40px 52px;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.right-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(59,91,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.form-wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px;
  animation: fadeUp 0.65s cubic-bezier(.22,.68,0,1.2) both;
  animation-delay: 0.08s;
  opacity: 0;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Portal badge */

.form-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px; font-weight: 800;
  color: #fff; letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.form-desc {
  font-size: 14px; color: var(--muted);
  margin-bottom: 32px; line-height: 1.5;
}

.form-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin-bottom: 28px;
}

/* Error / info */
#error-msg {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  color: #FCA5A5;
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; margin-bottom: 18px;
  display: none;
  line-height: 1.6;
}
#info-msg {
  background: rgba(59,91,255,0.08);
  border: 1px solid rgba(59,91,255,0.2);
  color: #7C9DFF;
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; margin-bottom: 18px;
  display: none;
}

/* Fields */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11px; font-weight: 600; color: var(--label);
  text-transform: uppercase; letter-spacing: 0.9px; margin-bottom: 8px;
}
.iw { position: relative; }
.iw-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; transition: color 0.2s;
}
.iw:focus-within .iw-icon { color: var(--brand); }

.field input {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 11px;
  padding: 13px 16px 13px 42px;
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-size: 16px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus {
  border-color: var(--border-hover);
  background: rgba(59,91,255,0.05);
  box-shadow: 0 0 0 3px rgba(59,91,255,0.1);
}

/* pw toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 4px; display: flex; align-items: center;
  border-radius: 6px; transition: color 0.2s, background 0.2s; line-height: 0;
}
.pw-toggle:hover { color: var(--brand); background: rgba(59,91,255,0.1); }
.pw-toggle svg { pointer-events: none; }

/* Submit */
.btn-submit {
  width: 100%; padding: 13px 20px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; border: none;
  border-radius: 11px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.1px;
  cursor: pointer; margin-top: 6px;
  box-shadow: 0 4px 20px rgba(59,91,255,0.3), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: all 0.22s; position: relative; overflow: hidden;
}
.btn-submit::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.2s;
}
.btn-submit:hover::after { opacity: 1; }
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(59,91,255,0.38); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Footer */
.form-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.secure-txt { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.secure-dot { width: 5px; height: 5px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 4px #22C55E; }

/* Mobile */
@media(max-width: 800px) {
  .right-panel { padding: 48px 28px; min-height: calc(100vh - 68px); align-items: flex-start; padding-top: 40px; }
  .form-wrap { max-width: 100%; }
}

/* ── Toggle tabs ── */
.auth-tabs {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1; padding: 9px 12px;
  background: transparent; border: none;
  border-radius: 9px; cursor: pointer;
  font-family: 'Figtree', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--muted); transition: all 0.2s;
}
.auth-tab.active {
  background: rgba(59,91,255,0.18);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,91,255,0.2);
}
.auth-tab:hover:not(.active) { color: var(--label); }

/* signup form fields */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Phone compound field ── */
.phone-wrap {
  display: flex;
  align-items: stretch;
  background: var(--input-bg);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 11px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  height: 48px;
}
.phone-wrap:focus-within {
  border-color: var(--border-hover);
  background: rgba(59,91,255,0.05);
  box-shadow: 0 0 0 3px rgba(59,91,255,0.1);
}
.phone-wrap .phone-dial {
  flex: 0 0 auto;
  width: 98px !important;
  min-width: 98px;
  max-width: 98px;
  background: rgba(255,255,255,0.04);
  border: none !important;
  border-right: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 0 !important;
  padding: 0 18px 0 8px !important;
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%234A5280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  box-shadow: none !important;
  height: 100%;
}
.phone-wrap .phone-dial option { background: #0D1235; color: #E8ECFF; }
.phone-wrap .phone-dial:focus { background-color: rgba(59,91,255,0.08); }
.phone-wrap .phone-local {
  flex: 1 1 0;
  min-width: 80px;
  background: transparent;
  border: none;
  padding: 0 12px;
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  outline: none;
  height: 100%;
}
.phone-wrap .phone-local::placeholder { color: var(--muted); }
.field select {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 11px;
  padding: 13px 16px 13px 42px;
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-size: 16px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none; cursor: pointer;
}
.field select:focus {
  border-color: var(--border-hover);
  background: rgba(59,91,255,0.05);
  box-shadow: 0 0 0 3px rgba(59,91,255,0.1);
}
.field select option { background: #0D1235; color: #E8ECFF; }

/* success / error signup */
#signup-success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  color: #86EFAC;
  padding: 14px 16px; border-radius: 10px;
  font-size: 13px; line-height: 1.6;
  display: none; margin-bottom: 18px;
}
#signup-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  color: #FCA5A5;
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; margin-bottom: 18px;
  display: none;
}

/* right panel scrollable for signup */
.right-panel { overflow-y: auto; align-items: flex-start; padding-top: 48px; padding-bottom: 48px; }
.form-wrap { width: 100%; max-width: 400px; margin: 0 auto; }
/* ── OTP panel ── */
#panel-otp { display: none; }
.otp-subtitle { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.otp-subtitle strong { color: var(--label); font-weight: 600; }
.otp-digits { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }
.otp-d {
  width: 52px; height: 60px;
  background: var(--input-bg);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 11px; text-align: center;
  font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 800;
  color: var(--text); outline: none; caret-color: var(--brand);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.otp-d:focus { border-color: var(--border-hover); background: rgba(59,91,255,0.05); box-shadow: 0 0 0 3px rgba(59,91,255,0.1); }
.otp-d.otp-filled { border-color: rgba(59,91,255,0.45); background: rgba(59,91,255,0.05); }
.trust-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 11px; padding: 14px 16px; margin-bottom: 22px; cursor: pointer;
  transition: border-color 0.2s;
}
.trust-row:hover { border-color: rgba(59,91,255,0.35); }
.trust-row input[type=checkbox] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }
.trust-row-body { flex: 1; }
.trust-row-title { font-size: 13px; font-weight: 600; color: var(--label); margin-bottom: 2px; }
.trust-row-sub { font-size: 11.5px; color: var(--muted); }
.otp-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.18); color: #FCA5A5; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; display: none; }
.otp-resend { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.otp-resend-btn { color: var(--brand); cursor: pointer; font-weight: 600; background: none; border: none; font-family: 'Figtree', sans-serif; font-size: 12.5px; padding: 0; display: none; }
.otp-resend-btn:hover { opacity: 0.8; }
.otp-back { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); cursor: pointer; background: none; border: none; font-family: 'Figtree', sans-serif; padding: 0; transition: color 0.2s; font-weight: 500; }
.otp-back:hover { color: var(--label); }


/* Nav + footer CSS moved to /css/shared/site-chrome.css (shared with forgot-password.html) */
/* Fixed nav offset */
body { padding-top: 68px; }