﻿* {
    box-sizing: border-box;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.otp-popup {
    background-color: #fff;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    padding: 30px 20px 20px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

    .otp-popup h2 {
        margin: 0 0 10px;
        font-size: 22px;
        color: #333;
    }

    .otp-popup p {
        margin: 0 0 20px;
        font-size: 15px;
        color: #555;
    }

.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.otp-box {
    width: 45px;
    height: 55px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

    .otp-box:focus {
        border-color: rgb(237, 28, 36);
    }

.error-message {
    color: #d93025;
    font-size: 14px;
    margin-bottom: 15px;
    height: 18px;
    visibility: hidden;
}

.success-message {
    color: green;
    font-weight: 600;
    margin-bottom: 15px;
    height: 18px;
    display: none;
}

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-cancel {
    background-color: #ccc;
    color: #333;
}

    .btn-cancel:hover:not(:disabled) {
        background-color: #b3b3b3;
    }

.btn-verify {
    background-color: rgb(237, 28, 36);
    color: white;
}

    .btn-verify:hover:not(:disabled) {
        background-color: #0056b3;
    }

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 480px) {
    .otp-box {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .btn {
        padding: 10px;
        font-size: 14px;
    }
}
@keyframes blink {
    0% {
        color: red;
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        color: red;
        opacity: 1;
    }
}

.expired {
    animation: blink 1s infinite;
    font-weight: bold;
}