/* Shared auth / interview access screens (login MFA, interview start, OTP verify) */

#root {
  min-height: 100vh;
}

.auth-screen,
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px 16px;
  box-sizing: border-box;
}

.auth-shell,
.login-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.otp-card,
.login-card.login-mfa-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  padding: 28px 24px 24px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft, 0 12px 40px rgba(18, 46, 74, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.85);
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  margin: 0 auto;
}

.otp-card::before,
.login-card.login-mfa-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 50%, var(--navy) 100%);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.logo-frame {
  margin: 0 auto 18px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  box-shadow: 0 6px 16px rgba(18, 46, 74, 0.06);
  border: 1px solid rgba(169, 196, 206, 0.35);
}

.logo-frame picture {
  display: block;
  line-height: 0;
}

.logo-frame img {
  max-height: 36px;
  width: auto;
}

.otp-card h1,
.login-card.login-mfa-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-deep, #122e4a);
  margin: 0 0 8px;
  line-height: 1.25;
}

.otp-card .instruction,
.login-card.login-mfa-card .instruction {
  color: var(--muted, #64748b);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.interview-meta-panel {
  text-align: left;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: rgba(240, 249, 250, 0.92);
  border-radius: 12px;
  border: 1px solid rgba(14, 122, 138, 0.12);
  font-size: 13px;
  line-height: 1.5;
  color: var(--navy, #122e4a);
}

.interview-meta-panel p {
  margin: 0 0 6px;
}

.interview-meta-panel p:last-child {
  margin-bottom: 0;
}

.otp-hint {
  font-size: 13px;
  margin-bottom: 14px !important;
}

.dev-otp-panel {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff8e6;
  border: 1px dashed #c9a227;
  border-radius: 10px;
  text-align: center;
}

.dev-otp-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a6914;
}

.dev-otp-code {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--teal, #0e7a8a);
  font-variant-numeric: tabular-nums;
}

.dev-otp-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.otp-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 16px;
}

.otp-field {
  width: 42px;
  height: 44px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border: 1px solid rgba(169, 196, 206, 0.55);
  border-radius: 10px;
  background: #fff;
  color: var(--navy-deep, #122e4a);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
}

.otp-field:focus {
  outline: none;
  border-color: var(--teal, #0e7a8a);
  box-shadow: 0 0 0 3px rgba(14, 122, 138, 0.12);
}

.verify-btn {
  width: 100%;
  min-height: var(--btn-height-lg);
  padding: 0 var(--btn-pad-x);
  font-family: inherit;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border-radius: var(--btn-radius);
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-mid, #163a5f) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(22, 58, 95, 0.12);
}

.verify-btn:hover:not(:disabled) {
  filter: brightness(1.04);
  box-shadow: 0 8px 20px rgba(22, 58, 95, 0.18);
}

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

.resend-text {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted, #64748b);
  line-height: 1.4;
}

.resend-text + .resend-text {
  margin-top: 6px;
}

.resend-link {
  color: var(--teal, #0e7a8a);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.resend-link:hover:not(:disabled) {
  text-decoration: underline;
}

.resend-link:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.error-msg {
  color: var(--danger, #b91c1c);
  background: #fef2f2;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin: 0 0 12px;
  display: none;
  border: 1px solid #fecaca;
  text-align: left;
}

.error-msg-visible {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.otp-card .alert,
.login-card.login-mfa-card .alert {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
  text-align: left;
}

.login-mfa-dev-hint {
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
}

.login-mfa-back {
  margin-top: 14px;
  font-size: 13px;
}

.login-mfa-back a {
  color: var(--teal, #0e7a8a);
  font-weight: 600;
  text-decoration: none;
}

.login-mfa-back a:hover {
  text-decoration: underline;
}

.dry-run-note {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(14, 122, 138, 0.05);
  border: 1px dashed var(--teal, #0e7a8a);
  font-size: 12px;
  color: var(--teal, #0e7a8a);
  text-align: left;
}

/* Modal OTP (change password) — compact fields inside dialog */
.change-password-otp-inputs.otp-input-group {
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .auth-screen,
  .login-container {
    padding: 16px 12px;
    align-items: center;
  }

  .otp-card,
  .login-card.login-mfa-card {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }

  .otp-card::before,
  .login-card.login-mfa-card::before {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .otp-card h1,
  .login-card.login-mfa-card h1 {
    font-size: 20px;
  }

  .otp-input-group {
    gap: 6px;
  }

  .otp-field {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 44px;
    height: 42px;
    font-size: 17px;
  }
}
