﻿.modal-dialog-mobile {
    height: 100%;
    margin: auto;
}

.modal-content-mobile {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-content-mobile .modal-body {
    top: 50%;
    transform: translateY(-50%)
}

.modal-content-mobile .modal-body label, .modal-content-mobile .modal-body p {
    color: #000000 !important;
}

.modal-content-mobile .op-btn {
    width: 149px !important;
}

.modal-content .op-label-title {
    margin: 20px 0;
    font-size: 24px;
}

.modal-content .op-btn {
    margin: 0 .8rem 30px .8rem;
}

/* Modal shell */
#two-factor-auth-modal .modal-dialog {
    max-width: 480px;
}

#two-factor-auth-modal .modal-dialog-mobile {
    width: unset !important;
    height: unset !important;
    margin: 0.5rem !important;
    -webkit-transform: unset !important;
    transform: unset !important;
}

#two-factor-auth-modal .otp-modal-content {
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

#two-factor-auth-modal p {
    margin: 0;
}

#two-factor-auth-modal label {
    margin: 0;
}

/* Header */
.otp-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.otp-modal-title {
    font-family: Open-Sans-SemiBold, "Open Sans", -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #262626;
    margin: 0;
}

.otp-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #262626;
    font-size: 24px;
    line-height: 1;
    transition: opacity 0.2s;
}

.otp-modal-close:hover {
    opacity: 0.7;
}

/* Body */
.otp-modal-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

/* Shield Icon */
.otp-icon-container {
    display: flex;
    justify-content: center;
}

.otp-shield-bg {
    width: 160px;
    height: 175px;
    display: block;
    object-fit: contain;
}

/* Message Section */
.otp-message-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
    text-align: center;
}

.otp-main-message {
    font-family: Open-Sans-Regular, "Open Sans", -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #262626;
}

.otp-security-message {
    font-family: Open-Sans-Regular, "Open Sans", -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #737373;
}

/* OTP Input Section */
.otp-input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.input-2fa-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 320px;
    max-width: 100%;
    margin: 0;
}

.input-2fa {
    flex: 1;
    min-width: 0;
    height: 52px;
    background-color: #e5e5e5;
    border: none;
    border-radius: 8px;
    text-align: center;
    font-family: Open-Sans-SemiBold, "Open Sans", -apple-system, sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 44px;
    color: #171717;
    padding: 0;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.input-2fa:focus {
    outline: none;
    background-color: #d4d4d4;
    box-shadow: 0 0 0 2px #FFC107;
}

.input-2fa:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-2fa-mobile {
    width: 45px !important;
    height: 45px !important;
}

.input-2fa-mobile-container {
    justify-content: center;
}

.input-2fa-mobile-container .input-2fa-mobile {
    margin: 0.2rem;
}

/* Resend Section */
.otp-resend-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.otp-resend-text {
    font-family: Open-Sans-Regular, "Open Sans", -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #262626;
    margin: 0;
    text-align: center;
}

.btn-resend-2fa {
    padding: 0;
    color: #076aef;
    background-color: transparent;
    border: none;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

.btn-resend-2fa:hover {
    text-decoration: underline;
}

.btn-resend-2fa[disabled] {
    cursor: not-allowed;
    color: gray;
    text-decoration: none;
}

.lblOTPResendCountDown {
    color: #262626;
}

/* Footer */
.otp-modal-footer {
    display: flex;
    justify-content: center;
}

.custom-btn.btn-submit-otp {
    width: 100%;
    max-width: 320px;
    padding: 8px 24px;
    height: 40px;
    background-color: #FFAC00;
    border: none;
    border-radius: 8px;
    font-family: Open-Sans-SemiBold, "Open Sans", -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #383838;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05) !important;
}

.custom-btn.btn-submit-otp:hover:not(:disabled) {
    background-color: #FFC107;
}

.custom-btn.btn-submit-otp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    #two-factor-auth-modal .otp-modal-content {
        padding: 20px;
        gap: 24px;
    }

    .otp-modal-title {
        font-size: 20px;
        line-height: 28px;
    }

    .otp-main-message {
        font-size: 16px;
    }

    .otp-security-message {
        font-size: 13px;
    }

    .otp-shield-bg {
        width: 120px;
        height: 131px;
    }

    .input-2fa {
        height: 48px;
        font-size: 36px;
    }

    .input-2fa-container {
        gap: 6px;
    }
}
