/* Email verification shares the application theme without changing other modals. */
.otp-verification {
  --otp-primary: var(--bs-primary, #666cff);
  --otp-primary-text: #5c61e6;
  --otp-ink: var(--bs-heading-color, #636578);
  --otp-muted: #737487;
  --otp-border: var(--bs-border-color, #eaeaec);
  --otp-surface: #fff;
  --otp-soft: #f7f7f9;
  --otp-primary-soft: #e8e9ff;
  --otp-danger: #c33440;
  --otp-success: #31704e;
}
.otp-verification .modal-dialog { max-width: 460px; margin-inline: auto; padding: 16px; }
.otp-verification.fade .modal-dialog { transform: translateY(16px) scale(.98); transition: transform .22s ease-out; }
.otp-verification.show .modal-dialog { transform: translateY(0) scale(1); }
.otp-verification .modal-content { position: relative; border: 1px solid var(--otp-border); border-radius: 18px; background: var(--otp-surface); box-shadow: 0 18px 64px rgba(35, 37, 68, .18); overflow: hidden; }
.otp-close { position: absolute; top: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--otp-muted); font-size: 21px; cursor: pointer; transition: background .16s ease; }
.otp-close:hover { background: var(--otp-soft); color: var(--otp-ink); }
.otp-dialog-body { padding: 34px 30px 24px; text-align: center; }
.otp-mail-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 16px; background: var(--otp-primary-soft); color: var(--otp-primary-text); font-size: 29px; }
.otp-eyebrow { display: block; color: var(--otp-primary-text); font-size: 10px; font-weight: 600; letter-spacing: 1.7px; margin-bottom: 9px; }
.otp-verification h2 { font-size: 27px; line-height: 1.3; letter-spacing: -.8px; font-weight: 600; color: var(--otp-ink); margin: 0 0 12px; }
.otp-verification #otpModalDescription { color: var(--otp-muted); font-size: 13px; line-height: 1.8; margin: 0 0 27px; }
.otp-verification #otpEmailAddress { display: inline-block; color: var(--otp-ink); font-weight: 600; overflow-wrap: anywhere; }
.otp-code-label { display: block; text-align: start; margin-bottom: 10px; color: var(--otp-ink); font-size: 12px; font-weight: 500; }
.otp-code-field { position: relative; isolation: isolate; }
.otp-code-field input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: text; }
.otp-code-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp-digit { display: grid; place-items: center; height: 56px; border: 1px solid #d9d9e2; border-radius: 9px; background: var(--otp-soft); color: var(--otp-ink); font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.otp-digit:empty::after { content: ''; width: 6px; height: 2px; background: #b9b9c8; border-radius: 2px; }
.otp-digit.is-filled { background: var(--otp-surface); border-color: #b3b6ff; }
.otp-digit.is-active { background: var(--otp-surface); border-color: var(--otp-primary); box-shadow: 0 0 0 3px rgba(102, 108, 255, .12); }
.otp-digit.is-active:empty::after { width: 2px; height: 21px; background: var(--otp-primary); animation: otp-caret 1s step-end infinite; }
.otp-code-field.is-complete .otp-digit { border-color: var(--otp-primary); }
.otp-code-field.has-error .otp-digit { border-color: var(--otp-danger); box-shadow: none; }
.otp-code-field.is-shaking { animation: otp-shake .28s ease; }
.otp-hint { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--otp-muted); font-size: 10px; line-height: 1.6; margin: 12px 0 0; }
.otp-hint i { font-size: 13px; }
.otp-error, .otp-status { text-align: start; font-size: 12px; line-height: 1.7; }
.otp-error { color: var(--otp-danger); margin-top: 12px; }
.otp-status { color: var(--otp-success); }
.otp-status:not(:empty) { margin-top: 12px; }
.otp-status.is-error { color: var(--otp-danger); }
.otp-verification [hidden] { display: none !important; }
.otp-verify { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; margin-top: 24px; padding: 12px 16px; border: 1px solid var(--otp-primary); border-radius: 8px; background: var(--otp-primary); color: #fff; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; cursor: pointer; transition: background .16s ease, opacity .16s ease; }
.otp-verify i { font-size: 18px; transition: transform .16s ease; }
.otp-verify:hover:not(:disabled) { background: #5c61e6; }
.otp-verify:hover:not(:disabled) i { transform: translateX(3px); }
.otp-verify:disabled { background: var(--otp-primary-soft); border-color: transparent; color: var(--otp-primary-text); cursor: not-allowed; }
.otp-verify.is-loading i, .otp-resend.is-loading i { animation: otp-spin 1s linear infinite; }
.otp-resend-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 7px; color: var(--otp-muted); font-size: 12px; margin-top: 16px; }
.otp-resend { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; padding: 6px 8px; background: transparent; border: 0; border-radius: 6px; color: var(--otp-primary-text); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .16s ease; }
.otp-resend i { font-size: 17px; }
.otp-resend:hover:not(:disabled) { background: var(--otp-primary-soft); }
.otp-resend:disabled { color: var(--otp-muted); cursor: not-allowed; }
.otp-resend-timer { margin: 2px 0 0; color: var(--otp-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.otp-dialog-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 16px 18px; border-top: 1px solid var(--otp-border); background: var(--otp-soft); color: var(--otp-muted); font-size: 11px; }
.otp-dialog-footer i { font-size: 16px; }
.otp-dialog-footer button { min-height: 28px; padding: 2px 4px; border: 0; border-radius: 4px; background: transparent; color: var(--otp-primary-text); font-size: inherit; font-weight: 600; cursor: pointer; }
.otp-verification button:focus-visible { outline: 3px solid var(--otp-primary); outline-offset: 3px; }
.dark-style .otp-verification { --otp-primary-text: #b3b6ff; --otp-muted: #b1b1c6; --otp-surface: #30334e; --otp-soft: #282a42; --otp-primary-soft: #3c3f6e; --otp-border: #484963; --otp-danger: #ff9aa3; --otp-success: #9fd7ae; }
.dark-style .otp-digit { border-color: #575a78; }
@media (max-width: 420px) { .otp-dialog-body { padding: 30px 21px 22px; } .otp-code-cells { gap: 6px; } .otp-digit { height: 49px; font-size: 23px; } .otp-verification h2 { font-size: 25px; } .otp-hint { font-size: 10px; } }
@keyframes otp-caret { 50% { opacity: 0; } }
@keyframes otp-spin { to { transform: rotate(360deg); } }
@keyframes otp-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .otp-verification *, .otp-verification.fade .modal-dialog { transition: none !important; animation: none !important; } }
