/* OTP Page Styles */

.page-otp {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.page-otp .main-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-height: 650px;
}

/* Left Side - OTP Form */
.page-otp .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9ff 100%);
    padding: 43px;
}

.page-otp .container > h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 600;
}

.page-otp .otp-description {
    color: #666;
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.5;
}

/* OTP Input Groups */
.otp-group {
    margin-bottom: 24px;
}

.otp-group > .otp-label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}

/* OTP Input Container */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    caret-color: #667eea;
}

.otp-input::placeholder {
    color: #d0d0d0;
    font-size: 28px;
}

.otp-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.otp-input.filled {
    border-color: #667eea;
    background: linear-gradient(to bottom, #f8f9ff 0%, #eef2ff 100%);
}

/* Suppress autofill styling */
.otp-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
    -webkit-text-fill-color: #333;
    border: 2px solid #667eea;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin-bottom: 24px;
}

.resend-timer {
    color: #666;
    font-size: 14px;
}

.timer-count {
    color: #667eea;
    font-weight: 600;
}

.resend-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.resend-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    text-decoration: underline;
}

/* Verify Button */
.page-otp #verifyBtn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.page-otp #verifyBtn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.page-otp #verifyBtn:active:not(.disabled) {
    transform: translateY(0);
}

.page-otp #verifyBtn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.page-otp #message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.page-otp #message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.page-otp #message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Right Side - Infographic */
.page-otp .infographic-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.otp-visual {
    text-align: center;
    margin-bottom: 40px;
}

.shield-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.shield-icon i {
    font-size: 56px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.1);
    }
}

.page-otp .stats-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-around;
}

.page-otp .stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
    width: 100%;
    text-align: center;
}

.page-otp .stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.page-otp .stat-card h3 {
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 700;
}

.page-otp .stat-card p {
    font-size: 13px;
    opacity: 0.9;
}

.page-otp .features-list {
    margin-top: 30px;
}

.page-otp .features-list h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-otp .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* Responsive Styles */
@media (max-width: 968px) {
    .page-otp .main-wrapper {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .page-otp .infographic-section {
        display: none;
    }

    .page-otp .container {
        height: auto;
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .page-otp {
        padding: 0;
    }

    .page-otp .main-wrapper {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .page-otp .container {
        padding: 32px 24px;
        height: auto;
        justify-content: flex-start;
        padding-top: 40px;
    }

    .page-otp .container > h2 {
        font-size: 26px;
    }

    .otp-container {
        gap: 8px;
        justify-content: center;
    }

    .otp-input {
        width: 44px;
        height: 52px;
        font-size: 22px;
        border-radius: 8px;
    }

    .otp-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .page-otp .container {
        padding: 24px 16px;
        padding-top: 32px;
    }

    .page-otp .container > h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .page-otp .otp-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .otp-container {
        gap: 6px;
    }

    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 20px;
        border-radius: 8px;
    }

    .otp-group > .otp-label {
        font-size: 13px;
    }

    .page-otp #verifyBtn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .otp-input {
        width: 36px;
        height: 44px;
        font-size: 18px;
    }

    .otp-container {
        gap: 4px;
    }
}
