.auth-face-card {
  max-width: 460px;
  padding: 30px 32px 28px;
  overflow: hidden;
}

.auth-face-card .auth-logo { margin-bottom: 2px; }
.auth-face-card .auth-logo img { height: 40px; width: auto; }
.auth-face-card h1 { font-size: 23px; margin-top: 13px; }
.auth-face-card .auth-sub { max-width: 330px; margin-left: auto; margin-right: auto; }

.auth-face-mark,
.auth-recognized {
  width: 66px;
  height: 66px;
  margin: 17px auto 4px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-face-mark {
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(255,77,0,.1);
}
.auth-face-mark .material-icons-round { font-size: 35px; }
.auth-recognized {
  width: 58px;
  height: 58px;
  color: var(--money-ink);
  background: var(--money-bg);
  border-radius: 50%;
}
.auth-recognized .material-icons-round { font-size: 31px; font-weight: 700; }

.auth-email-switch {
  display: block;
  margin: 10px auto 0;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 11px/1.3 var(--font);
  cursor: pointer;
}
.auth-email-switch:hover { color: var(--ink); text-decoration: underline; }

.auth-face-card .code-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.auth-face-card .code-inputs input {
  width: 100%;
  height: 52px;
  font-size: 22px;
}

.auth-face-cta { min-height: 54px; }
.auth-face-cta .material-icons-round { font-size: 24px; }
.auth-face-card .btn:active { transform: translateY(1px) scale(.995); }

.auth-trust {
  margin: 17px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}
.auth-trust .material-icons-round { color: var(--teal); font-size: 17px; margin-top: 1px; }

.auth-camera {
  position: relative;
  width: min(100%, 330px);
  height: 330px;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 20px;
  background: #242127;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.auth-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.auth-camera-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 30%, transparent 63%, rgba(0,0,0,.48));
}
.auth-face-guide {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 178px;
  height: 226px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 48% 48% 45% 45%;
  box-shadow: 0 0 0 999px rgba(20,18,22,.24), inset 0 0 30px rgba(255,255,255,.05);
  pointer-events: none;
}
.auth-camera-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #fff;
  background: rgba(27,26,31,.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}
.status-pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #73e6ad;
  box-shadow: 0 0 0 4px rgba(115,230,173,.16);
}
.auth-camera-status.is-error .status-pulse {
  background: #ff8b82;
  box-shadow: 0 0 0 4px rgba(255,139,130,.16);
}

.auth-account-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.auth-account-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(23, 20, 25, .12); background: #fff; cursor: pointer;
  font: 700 15px var(--font); color: var(--ink, #1b1a1f);
}
.auth-account-choice span { font-weight: 500; font-size: 12px; color: var(--muted, #6d6875); }
.auth-account-choice:hover { border-color: var(--brand, #FF4D00); }

.auth-text-button {
  display: block;
  margin: 14px auto 0;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  color: var(--brand-ink);
  font: 600 13px var(--font);
  cursor: pointer;
}
.auth-text-button:hover { text-decoration: underline; }

.auth-pin-inputs {
  display: grid;
  grid-template-columns: repeat(4, 56px);
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 20px auto 8px;
}
.auth-pin-inputs input {
  appearance: none;
  -webkit-appearance: none;
  width: 56px;
  height: 62px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #dedee5;
  border-radius: 14px;
  outline: none;
  background: linear-gradient(180deg, #fff 0%, #fafafd 100%);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 7px rgba(27,26,31,.045);
  font-family: var(--font);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  caret-color: var(--brand);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}
.auth-pin-inputs input:hover {
  border-color: #c9c9d2;
  background: #fff;
}
.auth-pin-inputs input:focus,
.auth-pin-inputs input:focus-visible,
.auth-pin-inputs input.is-focused {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,77,0,.11), 0 8px 20px rgba(255,77,0,.10);
  transform: translateY(-1px);
}
.auth-pin-inputs input.has-value {
  border-color: #aaaab4;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 9px rgba(27,26,31,.06);
}
.auth-pin-inputs input.has-value:focus,
.auth-pin-inputs input.has-value:focus-visible,
.auth-pin-inputs input.has-value.is-focused {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255,77,0,.11), 0 8px 20px rgba(255,77,0,.10);
}
.auth-pin-inputs.is-invalid { animation: auth-pin-shake .28s ease; }
.auth-pin-inputs.is-invalid input {
  border-color: var(--danger);
  background: var(--danger-bg);
  box-shadow: 0 0 0 3px rgba(228,57,43,.09);
}
@keyframes auth-pin-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
.auth-inline-error {
  min-height: 20px;
  margin: 0 0 11px;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 520px) {
  .auth-body { padding: 0; align-items: stretch; }
  .auth-face-card {
    min-height: 100dvh;
    max-width: none;
    border: 0;
    border-radius: 0;
    padding: max(22px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
    box-shadow: none;
  }
  .auth-face-card .auth-logo img { height: 36px; }
  .auth-camera { height: min(48dvh, 370px); width: 100%; }
  .auth-pin-inputs {
    grid-template-columns: repeat(4, minmax(48px, 56px));
    gap: clamp(7px, 2.2vw, 10px);
    width: 100%;
  }
  .auth-pin-inputs input { width: 100%; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-pin-inputs.is-invalid { animation: none; }
  .auth-pin-inputs input { transition: none; }
  .auth-face-card .btn { transition: none; }
}
