/* WP2FA Frontend Styles */

.wp2fa-shortcode-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 15px;
}

.wp2fa-enable-form,
.wp2fa-disable-form {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.wp2fa-enable-form h3,
.wp2fa-disable-form h3 {
    margin: 0 0 30px 0;
    color: #1d1d1d;
    font-size: 24px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 15px;
}

.wp2fa-form-content {
    margin-top: 20px;
}

/* Boîtes d'information */
.wp2fa-info-box {
    background: #f0f6fc;
    border: 1px solid #b3d9ef;
    border-left: 4px solid #007cba;
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 20px;
}

.wp2fa-info-box h4 {
    margin: 0 0 10px 0;
    color: #003d82;
    font-size: 14px;
    font-weight: bold;
}

.wp2fa-info-box p {
    margin: 0;
    color: #1d1d1d;
    font-size: 14px;
    line-height: 1.6;
}

/* Boîte d'avertissement */
.wp2fa-warning-box {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-left: 4px solid #d32f2f;
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 20px;
}

.wp2fa-warning-box h4 {
    margin: 0 0 10px 0;
    color: #c62828;
    font-size: 16px;
    font-weight: bold;
}

.wp2fa-warning-box p {
    margin: 0;
    color: #5e2e2e;
    font-size: 14px;
    line-height: 1.6;
}

/* Avantages et conséquences */
.wp2fa-benefits,
.wp2fa-consequences,
.wp2fa-how-it-works {
    margin-bottom: 25px;
}

.wp2fa-benefits h4,
.wp2fa-consequences h4,
.wp2fa-how-it-works h4 {
    margin: 0 0 12px 0;
    color: #1d1d1d;
    font-size: 14px;
    font-weight: bold;
}

.wp2fa-benefits ul,
.wp2fa-consequences ul,
.wp2fa-how-it-works ol {
    margin: 0;
    padding-left: 25px;
}

.wp2fa-benefits li,
.wp2fa-consequences li,
.wp2fa-how-it-works li {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.wp2fa-benefits li {
    color: #2e7d32;
}

.wp2fa-consequences li {
    color: #d32f2f;
}

/* Formulaire */
.wp2fa-form {
    margin-top: 25px;
}

.wp2fa-form-group {
    margin-bottom: 20px;
}

.wp2fa-form-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
}

.wp2fa-form-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
    cursor: pointer;
    flex-shrink: 0;
}

.wp2fa-form-group strong {
    color: #1d1d1d;
}

/* Boutons */
.wp2fa-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.wp2fa-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wp2fa-btn:active {
    transform: translateY(0);
}

.wp2fa-btn-primary {
    background: #007cba;
    color: white;
}

.wp2fa-btn-primary:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.wp2fa-btn-secondary {
    background: #f0f0f1;
    color: #555;
    border: 1px solid #ccd0d4;
}

.wp2fa-btn-secondary:hover {
    background: #e0e0e1;
    color: #333;
    text-decoration: none;
}

.wp2fa-btn-danger {
    background: #d32f2f;
    color: white;
}

.wp2fa-btn-danger:hover {
    background: #b71c1c;
    color: white;
    text-decoration: none;
}

.wp2fa-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.wp2fa-btn-spinner {
    display: inline-block;
    margin-left: 8px;
}

.wp2fa-btn-spinner .dashicons {
    animation: spin 1s linear infinite;
    font-size: 14px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.wp2fa-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.wp2fa-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wp2fa-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-left: 4px solid #d32f2f;
}

.wp2fa-message .dashicons {
    margin-right: 10px;
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wp2fa-authenticator-setup {
    margin-top: 20px;
}

.wp2fa-qrcode {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.wp2fa-qrcode img,
.wp2fa-qrcode canvas {
    width: 180px;
    height: 180px;
}

.wp2fa-confirm-totp-form {
    margin-top: 16px;
}

.wp2fa-confirm-totp-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.wp2fa-confirm-totp-form input {
    width: 180px;
    max-width: 100%;
    padding: 10px;
    font-size: 20px;
    letter-spacing: 4px;
    text-align: center;
    font-family: monospace;
    margin-right: 10px;
}

.wp2fa-backup-codes ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    padding-left: 0;
    margin: 12px 0 0;
    list-style: none;
}

.wp2fa-backup-codes code,
.wp2fa-authenticator-setup code {
    user-select: all;
}

/* Notices */
.wp2fa-notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 3px;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.5;
}

.wp2fa-notice-info {
    background: #f0f6fc;
    border-left-color: #007cba;
    color: #003d82;
}

.wp2fa-notice-warning {
    background: #fffbf0;
    border-left-color: #ffc107;
    color: #856404;
}

.wp2fa-notice-error {
    background: #fcf0f1;
    border-left-color: #d32f2f;
    color: #9c3838;
}

/* Widget de statut */
.wp2fa-status-widget {
    max-width: 500px;
    margin: 20px auto;
}

.wp2fa-status-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.wp2fa-status-card h3 {
    margin: 0 0 20px 0;
    color: #1d1d1d;
    font-size: 20px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 15px;
}

.wp2fa-status-info {
    margin-bottom: 25px;
}

.wp2fa-status-indicator {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
}

.wp2fa-status-indicator.enabled {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wp2fa-status-indicator.disabled {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wp2fa-status-indicator .dashicons {
    margin-right: 10px;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.wp2fa-status-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 3px;
    border: 1px solid #eee;
}

.wp2fa-status-details p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #555;
}

.wp2fa-status-details p:last-child {
    margin-bottom: 0;
}

.wp2fa-status-details strong {
    color: #1d1d1d;
    min-width: 120px;
    display: inline-block;
}

.wp2fa-status-details ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.wp2fa-status-details li {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.wp2fa-status-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .wp2fa-shortcode-container {
        padding: 0 10px;
    }

    .wp2fa-enable-form,
    .wp2fa-disable-form,
    .wp2fa-status-card {
        padding: 20px;
    }

    .wp2fa-btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .wp2fa-form-group label {
        font-size: 13px;
    }
}
