/* ==========================================================
   OTP VERIFICATION PAGE STYLES
   ========================================================== */

:root {
    --accent: #4da6ff;
    --accent-2: #2f80ed;
    --ok: #27ae60;
    --warn: #f39c12;
    --crit: #c0392b;
    --card-bg: rgba(34, 34, 34, 0.9);
    --field-bg: #1c1c1c;
    --border: rgba(255, 255, 255, 0.08);
    --text: #eee;
    --muted: #9aa0a6;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

html {
    background: radial-gradient(
        circle at top center,
        #3a3a3a 0%,
        #232323 40%,
        #141414 100%
    );
    background-attachment: fixed;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.otp-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 9, 12, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes otpIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.otp-box {
    width: 100%;
    max-width: 400px;
    text-align: center;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.96), rgba(26, 26, 26, 0.96));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: otpIn 0.35s ease both;
}

.otp-ico {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 28px rgba(77, 166, 255, 0.4);
}

.otp-box h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.2px; }
.otp-box p  { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.otp-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 28px;
    letter-spacing: 6px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    background: var(--field-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.otp-input:focus {
    border-color: rgba(77, 166, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.15);
}

.otp-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}
.otp-trust input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.otp-btn {
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: transform 0.15s ease, filter 0.15s ease;
}
.otp-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }

.otp-error {
    background: rgba(192, 57, 43, 0.14);
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: #ff9a8f;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 13px;
    margin-bottom: 14px;
    text-align: left;
}

.otp-hint {
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
    word-break: break-all;
}

@media (max-width: 600px) {
    .otp-box { padding: 28px 22px; }
    .otp-input { font-size: 24px; }
}
