/* Secure Login / 2FA module */

/* ---- Shared modal shell ---- */
.secure-modal-dialog {
    max-width: 420px;
}

.secure-modal-dialog-lg {
    max-width: 720px;
    width: 90%;
}

.secure-modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.secure-modal-content-lg {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.secure-modal-body {
    padding: 28px 28px 24px;
    position: relative;
}

.secure-modal-body-lg {
    padding: 32px 28px 24px;
    position: relative;
}

.secure-modal-close,
.secure-modal-close-legacy {
    position: absolute;
    right: 16px;
    top: 12px;
    z-index: 5;
    margin-top: 0;
}

.secure-modal-title {
    margin-top: 0;
    font-weight: 700;
    font-size: 22px;
}

.secure-modal-title-lg {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
}

.secure-modal-desc {
    color: #555;
    margin-bottom: 18px;
}

.secure-modal-desc-lg {
    color: #666;
    margin: 14px 0 22px;
}

.secure-modal-help {
    color: #888;
    font-size: 12px;
    margin: 16px 0 0;
    line-height: 1.4;
}

.secure-modal-error {
    display: none;
    margin-top: 12px;
}

.secure-modal-error-sm {
    display: none;
    margin-top: 10px;
}

/* ---- Buttons ---- */
.secure-modal-btn {
    border-radius: 8px !important;
    height: 44px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 0 16px !important;
}

.secure-modal-btn.btn-default {
    background-color: #fff !important;
    border: 1px solid #dadce0 !important;
    color: #3c4043 !important;
}

.secure-modal-btn-continue {
    position: relative;
}

.secure-modal-btn-continue .secure-modal-btn-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

/* ---- Choose method ---- */
.secure-choice-row {
    margin-left: -8px;
    margin-right: -8px;
    display: flex;
    flex-wrap: wrap;
}

.secure-choice-col {
    padding: 8px;
    display: flex;
    float: none;
    width: 50%;
}

@media (max-width: 767px) {
    .secure-choice-col {
        width: 100%;
    }
}

.secure-choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 280px;
    padding: 22px 16px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.secure-choice-check {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #18adb2;
    color: #fff;
    line-height: 22px;
    font-size: 12px;
}

.secure-choice-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.secure-choice-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.secure-choice-icon-otp {
    background: #e6f7f8;
    color: #18adb2;
}

.secure-choice-icon-2fa {
    background: #f3f4f6;
    color: #111827;
}

.secure-choice-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secure-choice-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    min-height: 56px;
    margin: 0 0 16px;
    flex: 1 1 auto;
}

.secure-choice-card .secure-choice-btn {
    margin-top: auto;
    width: 100%;
    white-space: normal;
    height: auto !important;
    min-height: 44px;
    padding: 10px 12px !important;
}

.secure-choice-card.is-selected {
    border-color: #18adb2 !important;
    box-shadow: 0 0 0 1px #18adb2;
}

.secure-choice-card.is-selected .secure-choice-check {
    display: block !important;
}

.secure-choice-card.is-selected .secure-choice-btn {
    border-color: #18adb2 !important;
    color: #18adb2 !important;
}

/* ---- Setup QR ---- */
.secure-setup-qr-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 18px;
    min-height: 180px;
}

.secure-setup-qr-image {
    width: 200px;
    height: 200px;
    display: none;
}

.secure-setup-qr-loading {
    width: 200px;
    height: 200px;
    line-height: 200px;
    color: #999;
}

.secure-setup-divider {
    margin: 18px 0 12px;
    position: relative;
    text-align: center;
}

.secure-setup-divider hr {
    margin: 0;
}

.secure-setup-divider-label {
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 10px;
    color: #888;
    font-size: 12px;
    white-space: nowrap;
}

.secure-setup-manual-group {
    margin-top: 8px;
}

.secure-setup-manual-key {
    height: 40px;
    border-radius: 6px 0 0 6px;
    font-family: Consolas, monospace;
    letter-spacing: 0.5px;
}

.secure-setup-copy-btn {
    height: 40px;
    border-radius: 0 6px 6px 0;
}

.secure-setup-copy-msg {
    display: none;
    margin-top: 8px;
    font-size: 12px;
}

/* ---- Disable ---- */
.secure-disable-form-group {
    text-align: left;
    margin-bottom: 18px;
}

.secure-disable-password {
    height: 40px;
    border-radius: 8px;
}

/* ---- Verify OTP digits ---- */
.secure-verify-desc {
    color: #555;
    margin-bottom: 22px;
}

.secure-verify-code-boxes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.secure-verify-code-boxes .tfa-otp-digit {
    width: 42px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    border-radius: 8px;
}

.secure-verify-sep {
    color: #bbb;
    font-size: 22px;
    padding: 0 2px;
}
