/* Rat Two-Factor Authentication Styles */

.rat-2fa-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rat-2fa-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.rat-2fa-field {
    margin-bottom: 15px;
}

.rat-2fa-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.rat-2fa-input {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.rat-2fa-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.rat-2fa-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.rat-2fa-button:hover {
    background: #005a87;
}

.rat-2fa-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.rat-2fa-button.secondary {
    background: #666;
    margin-left: 10px;
}

.rat-2fa-button.secondary:hover {
    background: #555;
}

.rat-2fa-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

.rat-2fa-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rat-2fa-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rat-2fa-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.rat-2fa-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: rat-2fa-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes rat-2fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rat-2fa-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.rat-2fa-status.enabled {
    background: #d4edda;
    color: #155724;
}

.rat-2fa-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

.rat-2fa-help-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.rat-2fa-code-input {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
    width: 120px;
    padding: 12px;
}

.rat-2fa-timer {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.rat-2fa-timer.warning {
    color: #d63638;
    font-weight: 500;
}

/* Admin specific styles */
.rat-2fa-admin-notice {
    background: #fff;
    border-left: 4px solid #0073aa;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 5px 15px 2px;
    padding: 1px 12px;
}

.rat-2fa-admin-notice.error {
    border-left-color: #d63638;
}

.rat-2fa-admin-notice.success {
    border-left-color: #00a32a;
}

.rat-2fa-settings-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    margin-bottom: 20px;
}

.rat-2fa-settings-section h3 {
    margin: 0;
    padding: 15px 20px;
    background: #f1f1f1;
    border-bottom: 1px solid #ccd0d4;
}

.rat-2fa-settings-section .inside {
    padding: 20px;
}

.rat-2fa-role-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.rat-2fa-role-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.rat-2fa-role-item input {
    margin-right: 8px;
}

/* User profile styles */
.user-profile .rat-2fa-container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.user-profile .rat-2fa-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile .rat-2fa-toggle input {
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .rat-2fa-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .rat-2fa-input {
        max-width: 100%;
    }
    
    .rat-2fa-button {
        width: 100%;
        margin: 5px 0;
    }
    
    .rat-2fa-button.secondary {
        margin-left: 0;
    }
    
    .rat-2fa-role-list {
        grid-template-columns: 1fr;
    }
} 