/* IdeaERP - e-mail MFA dialog on the login page. Self-contained on purpose: the
   login page must not depend on the backend asset bundle being loaded. */

.i7-mfa-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
}

.i7-mfa-box {
    width: 100%;
    max-width: 380px;
    padding: 24px;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    text-align: center;
}

.i7-mfa-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 300;
}

.i7-mfa-hint {
    margin: 0 0 20px;
    color: #777777;
    font-size: 13px;
    word-break: break-word;
}

.i7-mfa-label {
    display: block;
    margin-bottom: 6px;
    color: #777777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.i7-mfa-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 22px;
    letter-spacing: 8px;
    text-align: center;
}

.i7-mfa-input:disabled {
    background: #f5f5f5;
}

.i7-mfa-message {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 13px;
    color: #178017;
}

.i7-mfa-message-error {
    color: #e11111;
    font-weight: 600;
}

/* The theme's own accent, so the button matches every other primary button in the
   system. The login page scopes its yellow to .oe_login_buttons and this dialog sits
   outside that container, so the :root variable is read directly - with the theme's
   current values as a fallback for a stylesheet that does not define them. */
.i7-mfa-confirm {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: var(--yellow-color, #fde575);
    color: var(--text-primary-color, #1d1d1d);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.i7-mfa-confirm:hover:not(:disabled) {
    filter: brightness(0.95);
}

.i7-mfa-confirm:disabled {
    opacity: 0.6;
    cursor: default;
}

.i7-mfa-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.i7-mfa-link {
    padding: 0;
    border: 0;
    background: none;
    color: #777777;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.i7-mfa-link:disabled {
    opacity: 0.6;
    cursor: default;
}
