/* Login Page Styles */
:root {
    --primary-color: #3a7bd5;
    --primary-light: #6abbff;
    --primary-dark: #0d47a1;
    --secondary-color: #6D28D9;
    --secondary-light: #8B5CF6;
    --secondary-dark: #4C1D95;
    --dark-color: #1E293B;
    --light-color: #F1F5F9;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --card-border-radius: 20px;
    --input-border-radius: 12px;
    --btn-border-radius: 12px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--dark-color);
    position: relative;
    overflow-x: hidden;
}

.container {
    z-index: 1;
    position: relative;
    max-width: 1200px;
    width: 100%;
}

.login-card {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    transition: transform var(--transition-speed);
}

.login-container {
    padding: 3rem;
    position: relative;
}

.stats-container {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    padding: 3rem;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.login-header h1 {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-header h2 {
    font-weight: 400;
    color: #718096;
    font-size: 1.1rem;
    margin-top: 0;
}

.form-label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1.75rem;
    border-radius: var(--input-border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all var(--transition-speed);
}

.input-group:focus-within {
    box-shadow: 0 4px 20px rgba(58, 123, 213, 0.15);
}

.input-group-text {
    background-color: #f8f9fa;
    border: none;
    color: var(--primary-color);
    padding-left: 18px;
    padding-right: 18px;
    font-size: 1.1rem;
}

.form-control {
    border: none;
    padding: 12px 15px;
    height: auto;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: background-color var(--transition-speed);
}

.form-control:focus {
    box-shadow: none;
    background-color: #fff;
    border-color: transparent;
}

.btn-primary {
    padding: 12px 15px;
    font-weight: 600;
    border-radius: var(--btn-border-radius);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background-color: #64748b;
    border-color: #64748b;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    border-radius: var(--btn-border-radius);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
    transition: all var(--transition-speed);
}

.btn-secondary:hover {
    background-color: #475569;
    border-color: #475569;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 2.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-speed);
    position: relative;
}

.login-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.login-footer a:hover {
    color: var(--primary-dark);
}

.login-footer a:hover::after {
    width: 100%;
}

.home-link {
    display: inline-flex;
    align-items: center;
    color: #718096;
    text-decoration: none;
    margin-top: 1.5rem;
    padding: 8px 15px;
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.03);
    transition: all var(--transition-speed);
}

.home-link:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.home-link i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.alert {
    border-radius: var(--input-border-radius);
    padding: 15px;
    margin-bottom: 1.75rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.alert-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.alert-success {
    background-color: #D1FAE5;
    color: #047857;
}

.alert-info {
    background-color: #E0F2FE;
    color: #0369A1;
}

.alert-dismissible .btn-close {
    padding: 15px;
    color: inherit;
    opacity: 0.7;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(5px);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.security-tips {
    margin-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    background-color: #f8fafc;
    border-radius: var(--input-border-radius);
    padding: 20px;
}

.security-tips h6 {
    color: #334155;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.security-tips h6 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.security-tips ul {
    padding-left: 2rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.security-tips li {
    margin-bottom: 0.5rem;
    position: relative;
}

.security-tips li::before {
    content: '✓';
    position: absolute;
    left: -1.5rem;
    color: var(--success-color);
    font-weight: bold;
}

.form-text {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

#togglePassword {
    background-color: #f8f9fa;
    border: none;
    color: #64748b;
    transition: color var(--transition-speed);
}

#togglePassword:hover {
    color: var(--primary-color);
}

#togglePassword:focus {
    box-shadow: none;
    outline: none;
}

/* 2FA Container Styles */
.twofa-container {
    background-color: rgba(224, 242, 254, 0.3);
    border-radius: var(--card-border-radius);
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.twofa-container .alert-info {
    background-color: #E0F2FE;
    color: #0369A1;
    border: none;
}

/* CAPTCHA Styles */
.h-captcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.captcha-container {
    margin-bottom: 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--input-border-radius);
    padding: 20px;
    background-color: #f8fafc;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.captcha-title {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Responsividade ajustada */
@media (max-width: 991.98px) {
    .stats-container {
        padding: 2.5rem;
    }
    
    .login-container {
        padding: 2.5rem;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .stats-container {
        display: none;
    }
    
    .login-container {
        padding: 2rem;
    }
    
    .login-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    body {
        padding: 1rem;
    }
    
    .login-container {
        padding: 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1rem;
    }
}