/* Контейнер MFA розділів */
.mfa-section {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.04);
    padding: 25px;
    margin: 140px auto 30px;
    max-width: 600px;
    text-align: center;
}

/* Заголовки */
.mfa-section h1,
.mfa-section h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
}

/* Форма */
.mfa-form label {
    display: block;
    margin: 12px 0 6px;
    font-weight: bold;
    text-align: left;
}

.mfa-form input[type="text"],
.mfa-form input[type="password"],
.mfa-form input[type="email"],
.mfa-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 12px;
}

.mfa-form input[type="submit"],
.mfa-section button,
.mfa-section a.button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
    background: #3366cc;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

.mfa-section input[type="submit"]:hover,
.mfa-section button:hover,
.mfa-section a.button:hover {
    background: #264d99;
}

/* Flash-повідомлення */
.mfa-section .flash-success,
.mfa-section .flash-error {
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    padding: 25px;
    border-radius: 4px;
    font-size: 14px;
    margin: 10px 0 20px;
    text-align: left;
}

.mfa-section .flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mfa-section .flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Кнопки відправки коду */
#fallback-options {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
}

#fallback-options a {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
    color: #3366cc;
    text-decoration: none;
}

#fallback-options a:hover {
    text-decoration: underline;
}

/* MFA таблиця (налаштування) */
.mfa-settings table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.mfa-settings th,
.mfa-settings td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ccc;
}

.mfa-settings th {
    background-color: #f2f2f2;
}

.mfa-settings a {
    color: #3366cc;
    text-decoration: none;
}

.mfa-settings a:hover {
    text-decoration: underline;
}

.mfa-settings hr {
    margin: 30px 0;
}

/* Recovery codes */
.mfa-section ul {
    list-style-type: none;
    padding: 0;
    margin: 25px 0 30px;
}

.mfa-section li.code-line {
    font-family: monospace;
    font-size: 18px;
    background: #fff;
    border: 1px dashed #ccc;
    padding: 8px 12px;
    margin: 6px auto;
    max-width: 300px;
    border-radius: 5px;
}

/* Recovery-кнопки */
.mfa-section .button-row {
    margin-top: 20px;
}

.mfa-section button,
.mfa-section a.recovery-link {
    display: inline-block;
    margin: 8px 10px 0;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.mfa-section a.recovery-link {
    background: #eee;
    color: #3366cc;
}

.mfa-section a.recovery-link:hover {
    background: #ddd;
    text-decoration: underline;
}

.mfa-section img.qr {
    display: block;
    margin: 0 auto 20px auto;
    border: 1px solid #ccc;
    padding: 5px;
    background: white;
}

hr {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #ccc;
}
