/* Email-code sign-in (inc/otp-form.php) */
.otp-flow [hidden] { display: none !important; }
.otp-flow form { display: block; }
.otp-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: #cbd5e1; }
.otp-btn { width: 100%; margin-top: 14px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.otp-btn[disabled] { opacity: .65; cursor: wait; }
.otp-btn.loading .otp-btn-text::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: otpSpin .7s linear infinite; }
@keyframes otpSpin { to { transform: rotate(360deg); } }
.otp-remember { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: #cbd5e1; cursor: pointer; user-select: none; }
.otp-remember input { width: 18px; height: 18px; accent-color: #3b82f6; cursor: pointer; flex-shrink: 0; }
.otp-hint { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: #64748b; }
.otp-hint i { margin-right: 4px; color: #475569; }
.otp-turnstile { margin-top: 12px; min-height: 0; }

.otp-alert { margin-bottom: 16px; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.otp-alert i { margin-top: 3px; }
.otp-alert.error { background: rgba(69, 10, 10, .4); border-color: rgba(239, 68, 68, .4); color: #fecaca; }
.otp-alert.error i { color: #f87171; }
.otp-alert.info { background: rgba(8, 47, 73, .45); border-color: rgba(56, 189, 248, .35); color: #bae6fd; }
.otp-alert.ok { background: rgba(2, 44, 34, .45); border-color: rgba(16, 185, 129, .4); color: #a7f3d0; }

.otp-sent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .25); color: #cbd5e1; font-size: 14px; line-height: 1.5; }
.otp-sent i { margin-top: 3px; color: #38bdf8; }
.otp-sent b { color: #fff; word-break: break-all; }
.otp-sent.otp-ok { background: rgba(16, 185, 129, .08); border-color: rgba(16, 185, 129, .3); }
.otp-sent.otp-ok i { color: #34d399; }

/* the 6-digit box: big, spaced, easy to read and to tap on a phone */
.dark-input-field.otp-code { text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 30px; font-weight: 700; letter-spacing: .5em; padding: 14px 8px 14px calc(8px + .5em); }
.dark-input-field.otp-code::placeholder { letter-spacing: .3em; color: #334155; }
.otp-code.shake { animation: otpShake .35s; border-color: #f87171 !important; }
@keyframes otpShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.otp-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: #94a3b8; }
.otp-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: #60a5fa; cursor: pointer; }
.otp-link:hover:not([disabled]) { color: #93c5fd; text-decoration: underline; }
.otp-link[disabled] { color: #475569; cursor: not-allowed; }
.otp-change { display: inline-block; margin-top: 10px; color: #94a3b8; font-weight: 500; }

.otp-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.otp-divider::before, .otp-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .08); }
.otp-pw-toggle { width: 100%; padding: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: #cbd5e1; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.otp-pw-toggle:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.otp-pw-toggle i { font-size: 11px; transition: transform .2s; }
.otp-pw-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.otp-pw-panel { margin-top: 16px; }
.otp-pw-panel[hidden] { display: none; }
