/* Recruteur auth — styles maquette yatalent_recruteur_auth.html */
:root {
  --text2: #6b6b6b;
  --g1: #f3f2f0;
  --g4: #9a9a9a;
  --green-m: #0f6e56;
  --green-l: #e1f5ee;
  --blue-l: #eff6ff;
  --orange: #b45309;
  --r-lg: 16px;
}

#auth-shell {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.auth-mode .screen,
body.auth-mode .bot-nav,
body.auth-mode .desktop-sidebar {
  display: none !important;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 24px 20px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(13, 27, 62, 0.06);
}

.auth-logo {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo span {
  color: var(--bx);
}

/* Préfixe #auth-shell : évite collision avec .sd/.si/.sl des bottom sheets recruteur */
#auth-shell .steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 18px;
}

#auth-shell .si {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  padding: 0;
}

#auth-shell .sd {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--g4);
  background: var(--surface);
  flex-shrink: 0;
}

#auth-shell .sd.active {
  border-color: var(--bx);
  color: var(--bx);
  background: var(--bx-l);
}

#auth-shell .sd.done {
  border-color: var(--green-m);
  background: var(--green-m);
  color: #fff;
}

#auth-shell .sd.new-step-active {
  border-color: var(--gold);
  color: var(--amber);
  background: var(--gold-l);
}

#auth-shell .sl.new-step-active {
  color: var(--amber);
  font-weight: 700;
}

#auth-shell .sl {
  font-size: 9px;
  font-weight: 600;
  color: var(--g4);
  text-align: center;
  line-height: 1.2;
}

#auth-shell .sl.active,
#auth-shell .sl.done {
  color: var(--navy);
}

#auth-shell .sline {
  width: 24px;
  height: 2px;
  background: var(--border-md);
  margin-top: 13px;
  flex-shrink: 0;
}

#auth-shell .sline.done {
  background: var(--green-m);
}

.alert {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.55;
  margin-bottom: 13px;
}

.alert i {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.a-info {
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid rgba(30, 64, 175, 0.15);
}

.a-err {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-b);
}

.a-gold {
  background: var(--gold-l);
  color: var(--amber);
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.a-ok {
  background: var(--green-l);
  color: var(--green-m);
  border: 1px solid rgba(15, 110, 86, 0.2);
}

.a-navy {
  background: rgba(13, 27, 62, 0.06);
  color: var(--navy);
  border: 1px solid rgba(13, 27, 62, 0.1);
}

.fg {
  margin-bottom: 12px;
}

/* Override global .fg { grid 2 cols } — label au-dessus du champ */
#auth-content .fg {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 20px;
}

#auth-content .fg .fl {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

#auth-content .row-inp,
#auth-content .fi-wrap {
  width: 100%;
}

#auth-content .fi,
#auth-content .fi.sel {
  width: 100%;
  margin-bottom: 0;
  box-sizing: border-box;
}

#auth-content .fi-hint {
  margin-top: 7px;
  margin-bottom: 0;
  line-height: 1.45;
}

#auth-content .detect-pill {
  margin-top: 8px;
}

.fg .fl {
  margin-bottom: 5px;
}

.fg .fl span {
  color: var(--bx);
}

.row-inp {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.prefix {
  display: flex;
  align-items: center;
  padding: 0 11px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-md);
  background: var(--g1);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.fi-wrap {
  position: relative;
}

.fi-ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--g4);
  pointer-events: none;
  z-index: 1;
}

.fi-ic.ok {
  color: var(--green-m);
}

.fi-ic.email {
  color: var(--blue);
}

.fi-ic.phone {
  color: var(--green-m);
}

.fi.with-eye,
.fi-wrap .fi {
  padding-left: 40px;
  margin-bottom: 0;
}

.fi-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--g4);
  padding: 4px;
  z-index: 1;
}

.fi.ok {
  border-color: var(--green-m);
}

.fi.err {
  border-color: var(--red);
}

.fi-hint {
  font-size: 10px;
  color: var(--g4);
  margin-top: 5px;
}

.fi-ok,
.fi-err {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  margin-top: 5px;
}

.fi-ok {
  color: var(--green-m);
}

.fi-err {
  color: var(--red);
}

.fi.sel {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.btn {
  width: 100%;
  border: none;
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-p {
  background: var(--bx);
  color: #fff;
}

.btn-p:active:not(:disabled) {
  background: var(--bx-d, #8f0035);
}

.btn-s {
  background: var(--surface);
  color: var(--navy);
  border: 1.5px solid var(--border-md);
}

.btn-g {
  width: 100%;
  background: none;
  border: none;
  color: var(--bx);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  font-family: inherit;
}

.btn-sm {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mt8 {
  margin-top: 8px;
}

.mt12 {
  margin-top: 12px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--g4);
  font-size: 11px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.detect-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 20px;
  margin-top: 6px;
}

.dp-email {
  background: var(--blue-l);
  color: var(--blue);
}

.dp-phone {
  background: var(--green-l);
  color: var(--green-m);
}

.dp-unknown {
  background: var(--g1);
  color: var(--g4);
}

.pwd-bars {
  display: flex;
  gap: 4px;
  margin: 8px 0 6px;
}

.pwd-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--g1);
  transition: background 0.2s;
}

.pwd-bar.pb-w {
  background: #f87171;
}

.pwd-bar.pb-f {
  background: #fb923c;
}

.pwd-bar.pb-g {
  background: #facc15;
}

.pwd-bar.pb-s {
  background: var(--green-m);
}

.pwd-rules {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
}

.pr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--g4);
}

.pr.ok {
  color: var(--green-m);
}

.pr.ko {
  color: var(--red);
}

.otp-hero {
  text-align: center;
  margin-bottom: 18px;
}

.otp-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.otp-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.otp-sub {
  font-size: 11px;
  color: var(--text2);
}

.otp-id {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

.otp-wrap {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-bottom: 14px;
}

.otp-b {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 10px;
  border: 1.5px solid var(--border-md);
  background: var(--surface);
  color: var(--navy);
  outline: none;
  font-family: inherit;
}

.otp-b.f {
  border-color: var(--bx);
  background: var(--bx-l);
}

.otp-b.v {
  border-color: var(--green-m);
}

.otp-b.err {
  border-color: var(--red);
  animation: shake 0.3s;
}

.otp-timer {
  text-align: center;
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 10px;
}

.otp-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.lbtn {
  background: none;
  border: none;
  color: var(--bx);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
}

.lbtn.dis {
  color: var(--g4);
  cursor: not-allowed;
}

.disco {
  background: linear-gradient(135deg, var(--navy) 0%, #162a5a 100%);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 13px;
  color: #fff;
}

.disco-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.disco-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 44px;
}

.disco-title {
  font-size: 13px;
  font-weight: 700;
}

.disco-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.disco-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.disco-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s;
}

.disco-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.disco-timer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}

.dev-alert {
  background: var(--gold-l);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 14px;
}

.dev-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-sub {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 8px;
}

.dev-info {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--navy);
  margin-bottom: 8px;
}

.dev-info div {
  margin-bottom: 3px;
}

.sec-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--g4);
  margin-bottom: 13px;
}

.sec-badge i {
  font-size: 13px;
  color: var(--green-m);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ti.spin,
i.spin {
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
