/**
 * Pages d'authentification — login.html et attente.html
 */

.auth-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px 18px;
  background:var(--bg);
}

.auth-card{
  width:100%; max-width:430px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow-lg);
  padding:30px 28px;
}

.auth-brand{display:flex; align-items:center; gap:13px; margin-bottom:24px}
.auth-brand .mark{
  width:44px; height:44px; border-radius:12px; flex:none;
  background:var(--accent); color:#fff;
  display:grid; place-items:center; font-size:22px;
}
.auth-brand h1{font-size:20px}
.auth-brand p{font-size:13px; margin-top:2px}

/* ---------- Onglets ---------- */
.auth-tabs{
  display:grid; grid-template-columns:1fr 1fr; gap:3px;
  background:var(--surface-2); border:1px solid var(--line);
  border-radius:var(--radius); padding:3px; margin-bottom:22px;
}
.auth-tab{
  padding:8px 10px; border:none; border-radius:7px; cursor:pointer;
  background:transparent; color:var(--txt-2);
  font:inherit; font-size:13.5px; font-weight:550;
  transition:background .15s, color .15s;
}
.auth-tab.active{background:var(--surface); color:var(--txt); box-shadow:var(--shadow)}

/* ---------- Formulaire ---------- */
.auth-form .btn-block{margin-top:4px}
.auth-form .btn-ghost{margin-top:6px}

.pwd{position:relative}
.pwd input{padding-right:44px}
.pwd-toggle{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:32px; height:32px; border:none; background:transparent; cursor:pointer;
  color:var(--txt-3); display:grid; place-items:center; border-radius:7px; font-size:17px;
}
.pwd-toggle:hover{color:var(--txt); background:var(--surface-2)}

.pwd-meter{height:3px; background:var(--line); border-radius:99px; margin-top:8px; overflow:hidden}
.pwd-meter span{
  display:block; height:100%; width:0; border-radius:99px;
  background:var(--danger); transition:width .2s, background .2s;
}
.pwd-meter span[data-level="2"]{background:var(--warn)}
.pwd-meter span[data-level="3"]{background:var(--info)}
.pwd-meter span[data-level="4"]{background:var(--ok)}

.auth-note{
  font-size:12.5px; color:var(--txt-3); line-height:1.6;
  margin-top:16px; padding-top:16px; border-top:1px solid var(--line);
}

/* ---------- Page d'attente ---------- */
.wait-icon{
  width:56px; height:56px; border-radius:16px; margin:0 auto 18px;
  background:var(--accent-soft); color:var(--accent);
  display:grid; place-items:center; font-size:27px;
}
.wait-card{text-align:center}
.wait-card h1{margin-bottom:10px}
.wait-card p{color:var(--txt-2); font-size:14.5px; line-height:1.65}
.wait-steps{
  text-align:left; margin:24px 0 20px; padding:16px;
  background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius);
}
.wait-step{display:flex; gap:11px; align-items:flex-start; padding:7px 0; font-size:13.5px}
.wait-step i{font-size:17px; flex:none; margin-top:1px}
.wait-step.done i{color:var(--ok)}
.wait-step.current i{color:var(--accent)}
.wait-step.todo{color:var(--txt-3)}
.wait-step.todo i{color:var(--txt-3)}
