/* 
 * Estilos da Página de Login
 * Design moderno e responsivo
 */
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Main Container */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 2;
    gap: 40px;
}

/* Login Box */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    animation: slideInLeft 0.6s ease-out;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: pulse 2s infinite;
}

.logo-circle i {
    font-size: 36px;
    color: #fff;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

/* Form Styling */
.login-form {
    margin-top: 25px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating > .form-control {
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    height: 58px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #7f8c8d;
}

/* Password Toggle Button */
.btn-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
    z-index: 10;
}

.btn-toggle-password:hover {
    color: #667eea;
}

/* Remember Me Checkbox */
.form-check {
    padding-left: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid #e0e6ed;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    color: #5a6c7d;
    font-size: 14px;
    cursor: pointer;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Footer Links */
.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e6ed;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #764ba2;
}

/* Info Box */
.info-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    animation: slideInRight 0.6s ease-out;
}

.info-content {
    text-align: center;
}

.info-icon {
    font-size: 64px;
    color: #667eea;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.info-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-content p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Features List */
.features {
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.feature-item i {
    color: #667eea;
    margin-right: 12px;
    font-size: 18px;
}

.feature-item span {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

/* Page Footer */
.login-page-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    position: relative;
    z-index: 2;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert i {
    font-size: 16px;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .info-box {
        max-width: 450px;
    }
}

@media (max-width: 576px) {
    .login-box,
    .info-box {
        padding: 30px 25px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .logo-circle i {
        font-size: 30px;
    }
    
    .info-content h3 {
        font-size: 20px;
    }
    
    .info-icon {
        font-size: 48px;
    }
}

/* Loading Animation */
.btn-login.loading {
    pointer-events: none;
    position: relative;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}
