/* ============================================================
   OTP page — matches the login pages' full-bleed split design
   ============================================================ */

.page-otp {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.page-otp .main-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* ---------- Left: form column ---------- */

.page-otp .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 56px 48px;
    order: 2;
}

.page-otp .container > *,
.page-otp .container form > * {
    width: 100%;
    max-width: 440px;
}

.page-otp .portal-eyebrow-row {
    text-align: left;
    margin-bottom: 16px;
}

.page-otp .portal-eyebrow {
    display: inline-block;
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 6px 14px;
    border-radius: 999px;
}

.page-otp .container > h2 {
    color: #171b3a;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.page-otp .otp-description {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* OTP inputs */
.otp-group {
    margin-bottom: 22px;
}

.otp-group > .otp-label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.otp-container {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.otp-input {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    background: #f7f8fc;
    border: 1.5px solid #e4e7f2;
    border-radius: 12px;
    color: #171b3a;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
    caret-color: #667eea;
}

.otp-input::placeholder {
    color: #c3c8d9;
    font-size: 26px;
}

.otp-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.otp-input.filled {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.12);
}

.otp-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
    -webkit-text-fill-color: #171b3a;
    border: 1.5px solid #667eea;
}

/* Resend */
.resend-section {
    text-align: center;
    margin-bottom: 22px;
}

.resend-timer {
    color: #6b7280;
    font-size: 14px;
}

.timer-count {
    color: #667eea;
    font-weight: 700;
}

.resend-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.resend-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    text-decoration: underline;
}

/* Verify button */
.page-otp #verifyBtn {
    width: 100%;
    padding: 16px;
    margin-top: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.page-otp #verifyBtn:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.35);
}

.page-otp #verifyBtn:active:not(.disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.page-otp #verifyBtn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Messages */
.page-otp #message {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.page-otp #message.success {
    background: #ecfdf5;
    color: #047857;
    display: block;
}

.page-otp #message.error {
    background: #fef2f2;
    color: #b91c1c;
    display: block;
}

/* ---------- Right: brand panel ---------- */

.page-otp .infographic-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    padding: 64px 56px;
    order: 1;
    background:
        radial-gradient(ellipse 80% 60% at 85% 8%, rgba(118, 75, 162, 0.45), transparent 60%),
        radial-gradient(ellipse 70% 55% at 10% 95%, rgba(102, 126, 234, 0.5), transparent 60%),
        linear-gradient(160deg, #4c56b8 0%, #667eea 55%, #764ba2 100%);
}

.page-otp .infographic-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.page-otp .infographic-section > * {
    position: relative;
}

.otp-visual {
    text-align: center;
    margin-bottom: 36px;
}

.shield-icon {
    width: 116px;
    height: 116px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    animation: pulse 2.4s ease-in-out infinite;
}

.shield-icon i {
    font-size: 52px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 24px 10px rgba(255, 255, 255, 0.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shield-icon {
        animation: none;
    }
}

.page-otp .stats-container {
    display: flex;
    flex-direction: row;
    gap: 18px;
    justify-content: space-around;
}

.page-otp .stat-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.25s, background 0.25s;
    width: 100%;
    text-align: center;
}

.page-otp .stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.page-otp .stat-card h3 {
    font-size: 24px;
    margin-bottom: 4px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-otp .stat-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
}

.page-otp .features-list {
    margin-top: 36px;
}

.page-otp .features-list h3 {
    font-size: 20px;
    margin-bottom: 18px;
    font-weight: 700;
}

.page-otp .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.page-otp .feature-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Responsive ---------- */

@media (max-width: 968px) {
    .page-otp .main-wrapper {
        grid-template-columns: 1fr;
        max-width: none;
        margin: 0;
    }

    .page-otp .infographic-section {
        display: none;
    }

    .page-otp .container {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

@media (max-width: 600px) {
    .page-otp .container {
        padding: 40px 24px;
    }

    .page-otp .container > h2 {
        font-size: 28px;
    }

    .page-otp .otp-description {
        font-size: 14px;
        margin-bottom: 26px;
    }

    .otp-container {
        gap: 8px;
        justify-content: flex-start;
    }

    .otp-input {
        width: 46px;
        height: 54px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .page-otp .container {
        padding: 32px 20px;
    }

    .page-otp .container > h2 {
        font-size: 24px;
    }

    .otp-container {
        gap: 6px;
    }

    .otp-input {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }

    .page-otp #verifyBtn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .otp-input {
        width: 38px;
        height: 46px;
        font-size: 18px;
    }

    .otp-container {
        gap: 4px;
    }
}