﻿#popup-otp-modal {
    position: fixed;
    inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
    z-index: 1050;
    display: none; /* default hidden */
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4); /* dark overlay */
}

#popup-otp-modal .otp-field {
    flex-direction: row;
    column-gap: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popup-otp-modal .otp-field input {
    height: 45px;
    width: 42px;
    border-radius: 6px;
    outline: none;
    font-size: 1.125rem;
    text-align: center;
    border: 1px solid #ddd;
}

#popup-otp-modal .otp-field input:focus {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

#popup-otp-modal .otp-field input::-webkit-inner-spin-button,
#popup-otp-modal .otp-field input::-webkit-outer-spin-button {
    display: none;
}

#popup-otp-modal .resend {
    font-size: 12px;
}

#popup-otp-modal .footer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: black;
    font-size: 12px;
    text-align: right;
    font-family: monospace;
}

    #popup-otp-modal .footer a {
        color: black;
        text-decoration: none;
    }


/* Modal Card Background and Shadow */
.modal-card {
    background-color: var(--bg-color); /* Adapts to dark/light */
    box-shadow: 0 12px 15px rgba(0, 0, 0, 0.05);
    color: var(--bs-body-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Headings and Paragraphs */
.modal-heading {
    color: var(--text-primary-light);
    font-weight: 600;
}

.modal-subheading {
    color: var(--text-primary-dark, #6c757d); /* fallback for light theme */
}

/* OTP Input Fields */
.otp-input {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    border: 1px solid var(--bs-border-color, #ccc);
    border-radius: 6px;
    background-color: var(--input-bg, #f8f9fa);
    color: var(--text-primary-light);
    outline: none;
    transition: all 0.2s;
}

    .otp-input:focus {
        border-color: var(--input-stroke);
        box-shadow: 0 0 0 0.2rem rgba(72, 127, 255, 0.25);
    }

/* Resend Link */
.resend {
    color: var(--text-primary-light);
}
.link-resend {
    color: var(--bs-primary);
    cursor: pointer;
}

    .link-resend:hover {
        text-decoration: underline;
    }
