/* ═══════════════════════════════════════════════
   OCRE — Auth (Login / Register)
   ═══════════════════════════════════════════════ */

:root {
  --bg:     #f4efe6;
  --ink:    #28231c;
  --ink-s:  #5b5348;
  --accent: #a4572a;
  --acc-d:  #7d3914;
  --line:   #decfb9;
  --panel:  #fffdf8;
  --sidebar:#2c1a0e;
  --danger: #b64332;
  --font:   "Avenir Next", "Segoe UI", sans-serif;
  --font-d: "Avenir Next Condensed", "Gill Sans", "Trebuchet MS", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); height: 100vh; overflow: hidden; }

/* ── Shell ──────────────────────────────────────── */
.auth-shell {
  display: grid; grid-template-columns: 1fr 1fr; height: 100vh;
}

/* ── Panneau gauche ─────────────────────────────── */
.auth-brand {
  background: linear-gradient(160deg, #2c1a0e 0%, #3e2614 50%, #2a1810 100%);
  color: #f0e6d3;
  display: flex; flex-direction: column; padding: 2.5rem 3rem;
  position: relative; overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(164,87,42,.25) 0%, transparent 60%);
  pointer-events: none;
}

.auth-logo {
  font-size: 2rem; font-weight: 900;
  color: #f0e6d3; text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 0;
}
.auth-logo .logo-home {
  font-family: 'Nunito', var(--font-d); font-weight: 900;
  color: #f0dfc3; letter-spacing: -.01em;
}
.auth-logo .logo-reno {
  font-family: 'Nunito', var(--font-d); font-weight: 900;
  color: #c97a45; letter-spacing: -.01em;
}

.auth-brand-content {
  display: flex; flex-direction: column; gap: 1.6rem;
  margin-top: 1.8rem;
}

/* Headline */
.auth-headline-tag {
  display: inline-block; padding: .25rem .7rem; border-radius: 99px;
  background: rgba(164,87,42,.35); color: #f0c89a;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .7rem;
}
.auth-headline h2 {
  font-family: var(--font-d); font-size: 2rem; font-weight: 800;
  line-height: 1.15; color: #fff; margin-bottom: .7rem;
}
.auth-headline-accent {
  color: #f0a06a;
}
.auth-headline-sub {
  font-size: .88rem; color: rgba(240,230,211,.65); line-height: 1.5;
}

/* Stats */
.auth-stats {
  display: flex; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.06); border-radius: 14px;
  padding: 1rem 1.2rem; border: 1px solid rgba(255,255,255,.08);
}
.auth-stat { flex: 1; text-align: center; }
.auth-stat-value {
  font-family: var(--font-d); font-size: 1.5rem; font-weight: 900;
  color: #f0c89a; line-height: 1;
}
.auth-stat-label { font-size: .7rem; color: rgba(240,230,211,.5); margin-top: .2rem; }
.auth-stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,.1); flex-shrink: 0; }

/* Mini devis preview */
.auth-card-preview {
  background: rgba(255,255,255,.07); border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
}
.acp-header {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .75rem; color: rgba(240,230,211,.7);
}
.acp-dot { width: 8px; height: 8px; border-radius: 50%; }
.acp-green { background: #34c759; box-shadow: 0 0 6px rgba(52,199,89,.5); }
.acp-badge {
  margin-left: auto; padding: .18rem .55rem; border-radius: 99px;
  background: rgba(52,199,89,.2); color: #34c759;
  font-size: .68rem; font-weight: 700;
}
.acp-line {
  display: flex; justify-content: space-between;
  padding: .45rem 1rem; font-size: .78rem;
  color: rgba(240,230,211,.75);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.acp-line span:last-child { font-weight: 600; color: rgba(240,230,211,.9); }
.acp-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: .65rem 1rem; background: rgba(255,255,255,.05);
  font-size: .82rem; color: rgba(240,230,211,.6);
}
.acp-total strong { font-size: 1.05rem; color: #f0c89a; font-weight: 800; }
.acp-footer {
  padding: .45rem 1rem;
  text-align: center;
}
.acp-ia {
  font-size: .7rem; color: rgba(240,230,211,.4);
  font-style: italic;
}

/* Tabs note / devis */
.acp-tabs {
  display: flex; gap: .4rem; margin-bottom: .5rem;
}
.acp-tab {
  padding: .3rem .7rem; border-radius: 8px; font-size: .72rem; font-weight: 600;
  color: rgba(240,230,211,.45); cursor: default;
}
.acp-tab-active {
  background: rgba(255,255,255,.1); color: rgba(240,230,211,.9);
}

/* Section title */
.acp-section-title {
  padding: .4rem 1rem .2rem;
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(240,230,211,.35);
}

/* Rooms */
.acp-rooms { padding: 0 1rem .4rem; display: flex; flex-direction: column; gap: .3rem; }
.acp-room {
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.05); border-radius: 8px;
  padding: .4rem .6rem; gap: .1rem;
}
.acp-room-name { font-size: .76rem; font-weight: 700; color: rgba(240,230,211,.85); grid-column: 1; }
.acp-room-dim  { font-size: .68rem; color: rgba(240,230,211,.45); grid-column: 2; text-align: right; }
.acp-room-calc { font-size: .68rem; color: #f0c89a; grid-column: 1 / -1; }

/* Checks */
.acp-checks { padding: 0 1rem .5rem; display: flex; flex-direction: column; gap: .25rem; }
.acp-check {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .75rem; color: rgba(240,230,211,.75); line-height: 1.4;
}
.acp-cb {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 4px;
  background: rgba(52,199,89,.25); color: #34c759;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 900; margin-top: .1rem;
}
.acp-cb-empty {
  background: rgba(255,255,255,.08); color: transparent;
}
.acp-muted { color: rgba(240,230,211,.3); }

.auth-trial { font-size: .78rem; color: rgba(240,230,211,.4); text-align: center; }

/* ── Panneau droit ──────────────────────────────── */
.auth-form-panel {
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto; padding: 2rem;
}
.auth-form-wrap { width: 100%; max-width: 420px; }

/* ── Tabs ───────────────────────────────────────── */
.auth-tabs {
  display: flex; background: rgba(0,0,0,.05); border-radius: 12px;
  padding: .3rem; margin-bottom: 2rem;
}
.auth-tab {
  flex: 1; padding: .6rem; border-radius: 9px;
  font-size: .9rem; font-weight: 600; color: var(--ink-s);
  background: none; border: none; cursor: pointer;
  transition: all .2s;
}
.auth-tab.active {
  background: var(--panel); color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* ── Form ───────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-title { font-family: var(--font-d); font-size: 1.8rem; font-weight: 800; margin-bottom: .2rem; }

.field-group { display: flex; flex-direction: column; gap: .4rem; }
.field-group label { font-size: .82rem; font-weight: 700; color: var(--ink-s); }

.field-group input,
.input-wrap input {
  width: 100%; padding: .7rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--panel);
  font-size: .95rem; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-group input:focus,
.input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(164,87,42,.12);
}

.input-wrap { position: relative; }
.input-wrap input { padding-right: 2.8rem; }
.btn-eye {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem;
  color: var(--ink-s); padding: .25rem;
}

/* ── Error ──────────────────────────────────────── */
.auth-error {
  padding: .65rem 1rem; border-radius: 9px;
  background: rgba(182,67,50,.1); color: var(--danger);
  font-size: .87rem; font-weight: 600; border: 1px solid rgba(182,67,50,.2);
}

/* ── Submit ─────────────────────────────────────── */
.btn-submit {
  width: 100%; padding: .85rem; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 16px rgba(164,87,42,.3);
  margin-top: .3rem;
}
.btn-submit:hover:not(:disabled) { background: var(--acc-d); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; }

/* ── Helpers ────────────────────────────────────── */
.hidden { display: none !important; }

.auth-switch {
  text-align: center; font-size: .87rem; color: var(--ink-s); margin-top: .4rem;
}
.auth-switch button {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-weight: 700; font-size: .87rem;
}
.auth-switch button:hover { text-decoration: underline; }

.auth-terms {
  text-align: center; font-size: .78rem; color: var(--ink-s);
}
.auth-terms a { color: var(--accent); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .auth-shell { grid-template-columns: 1fr; height: auto; overflow: auto; }
  .auth-brand { display: none; }
  body { overflow: auto; }
}


/* ── Bouton Google ───────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1.5px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background .12s, box-shadow .12s;
  box-shadow: 0 1px 3px rgba(60,64,67,.12);
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(60,64,67,.18);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .9rem 0;
  color: #aaa;
  font-size: .82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

/* ── Dashboard mockup (panneau gauche) ───────────── */
.dm-new-btn {
  font-size: .62rem; font-weight: 700;
  background: rgba(164,87,42,.75); color: #fff;
  padding: .25rem .55rem; border-radius: 7px;
  white-space: nowrap; flex-shrink: 0;
}

/* Two-column list layout */
.dm-lists {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
}
.dm-list-col { display: flex; flex-direction: column; gap: .2rem; }
.dm-list-title {
  font-size: .58rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: rgba(240,230,211,.35);
  margin-bottom: .1rem;
}

.dash-mockup {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .75rem;
  overflow: hidden;
}

.dm-greeting {
  font-size: .82rem; font-weight: 700; color: rgba(240,230,211,.9);
  display: flex; flex-direction: row; align-items: flex-start;
  justify-content: space-between; gap: .5rem;
}
.dm-greeting > div { display: flex; flex-direction: column; gap: .1rem; }
.dm-sub {
  font-size: .7rem; font-weight: 400; color: rgba(240,230,211,.45);
}

/* Workflow steps */
.dm-workflow {
  display: flex; align-items: center; gap: .4rem; flex-wrap: nowrap;
}
.dm-step {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  background: rgba(255,255,255,.05); border-radius: 10px;
  padding: .4rem .5rem; flex: 1; min-width: 0;
  border: 1px solid rgba(255,255,255,.06);
  opacity: .45;
}
.dm-step.dm-done  { opacity: .7; background: rgba(52,199,89,.1); border-color: rgba(52,199,89,.2); }
.dm-step.dm-active { opacity: 1; background: rgba(164,87,42,.25); border-color: rgba(164,87,42,.4); }
.dm-n   { font-size: .58rem; font-weight: 700; color: rgba(240,230,211,.4); }
.dm-ico { font-size: .9rem; line-height: 1; }
.dm-lbl { font-size: .6rem; font-weight: 600; color: rgba(240,230,211,.75); text-align: center; white-space: nowrap; }
.dm-arr { font-size: .9rem; color: rgba(240,230,211,.25); flex-shrink: 0; }

/* KPI cards */
.dm-kpis {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: .4rem;
}
.dm-kpi {
  border-radius: 10px; padding: .45rem .5rem;
  display: flex; flex-direction: column; gap: .1rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
}
.dm-kpi-b  { background: rgba(100,130,200,.12); border-color: rgba(100,130,200,.2); }
.dm-kpi-g  { background: rgba(52,199,89,.1);   border-color: rgba(52,199,89,.2);   }
.dm-kpi-o  { background: rgba(255,160,60,.1);  border-color: rgba(255,160,60,.2);  }
.dm-kpi-br { background: rgba(164,87,42,.15);  border-color: rgba(164,87,42,.25);  }
.dm-kpi-val { font-size: .8rem; font-weight: 800; color: rgba(240,230,211,.92); line-height: 1; }
.dm-kpi-lbl { font-size: .6rem; color: rgba(240,230,211,.45); line-height: 1.2; }
.dm-kpi-amt { font-size: .65rem; font-weight: 700; color: rgba(240,230,211,.6); margin-top: .1rem; }

/* Recent list */
.dm-list { display: flex; flex-direction: column; gap: .3rem; }
.dm-row {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.05); border-radius: 8px;
  padding: .35rem .6rem; font-size: .7rem;
}
.dm-ref    { font-weight: 700; color: rgba(240,230,211,.7); min-width: 80px; flex-shrink: 0; }
.dm-client { flex: 1; color: rgba(240,230,211,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-amt    { font-weight: 700; color: rgba(240,230,211,.8); flex-shrink: 0; }
.dm-badge  { padding: .15rem .45rem; border-radius: 99px; font-size: .62rem; font-weight: 700; flex-shrink: 0; }
.dm-b-neutral { background: rgba(255,255,255,.1); color: rgba(240,230,211,.55); }
.dm-b-ok      { background: rgba(52,199,89,.2);  color: #5fdb8a; }
.dm-b-warn    { background: rgba(255,160,60,.2); color: #f0a060; }

/* Footer */
.dm-footer {
  font-size: .66rem; color: rgba(240,230,211,.35);
  text-align: center; padding-top: .3rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
