/**
 * Lexon Authentication Module Styles
 */

.lexon-login-enhancements {
    margin-bottom: 20px;
}

.lexon-security-notice {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
    font-size: 13px;
    border-radius: 4px;
}

.lexon-security-notice i {
    margin-right: 8px;
    color: #007bff;
}

.lexon-password-strength {
    margin-top: 10px;
}

.lexon-strength-meter {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.lexon-strength-bar {
    height: 100%;
    transition: all 0.4s ease;
    border-radius: 3px;
}

.lexon-strength-weak {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
    width: 25%;
}

.lexon-strength-fair {
    background: linear-gradient(90deg, #ffc107 0%, #e0a800 100%);
    width: 50%;
}

.lexon-strength-good {
    background: linear-gradient(90deg, #17a2b8 0%, #138496 100%);
    width: 75%;
}

.lexon-strength-strong {
    background: linear-gradient(90deg, #28a745 0%, #218838 100%);
    width: 100%;
}

.lexon-strength-text {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

/* Stats Cards */
.lexon-stats-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.lexon-stats-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.lexon-stats-card p {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

.lexon-stats-card .icon {
    font-size: 36px;
    opacity: 0.3;
    float: right;
}

/* Blocked IPs Table */
.lexon-blocked-ips-table .label {
    font-size: 11px;
    padding: 4px 8px;
}

.lexon-ip-actions {
    white-space: nowrap;
}

.lexon-ip-actions .btn {
    padding: 4px 12px;
    font-size: 12px;
}

/* Security Events */
.lexon-severity-low {
    color: #17a2b8;
}

.lexon-severity-medium {
    color: #ffc107;
}

.lexon-severity-high {
    color: #fd7e14;
}

.lexon-severity-critical {
    color: #dc3545;
}

.lexon-event-description {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Filter Panel */
.lexon-filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.lexon-filters .form-group {
    margin-bottom: 15px;
}

.lexon-filters .form-group:last-child {
    margin-bottom: 0;
}

/* Login Form Enhancements */
.lexon-login-form {
    position: relative;
}

.lexon-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.lexon-password-toggle:hover {
    color: #495057;
}

/* 2FA Setup */
.lexon-2fa-qr {
    text-align: center;
    padding: 20px;
}

.lexon-2fa-qr img {
    max-width: 250px;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 8px;
}

.lexon-backup-codes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.lexon-backup-codes .code {
    display: block;
    padding: 5px;
    margin: 3px 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .lexon-stats-card .icon {
        float: none;
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .lexon-event-description {
        max-width: 200px;
    }
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .lexon-security-notice {
        background-color: #2d3238;
        border-left-color: #0d6efd;
    }

    .lexon-stats-card {
        background: #2d3238;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .lexon-filters {
        background: #2d3238;
    }
}
