/* ========================================
   Components CSS
   Login Container, Sidebar, Form Components
   ======================================== */

/* Sidebar Styles */
.login-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.login-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="textile" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M0 5h10M5 0v10" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23textile)"/></svg>');
    opacity: 0.3;
}

.sidebar-content {
    position: relative;
    z-index: 1;
}

.fabric-icon {
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-title {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-subtitle {
    font-weight: 300;
    opacity: 0.9;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
}

.feature-list i {
    color: #3498db;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    text-align: center;
}

.form-title {
    font-weight: 600;
    color: var(--text-color);
}

.form-subtitle {
    color: #6c757d;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.input-icon {
    color: #6c757d;
    z-index: 10;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

/* Ajustes responsivos específicos */
@media (max-width: 767.98px) {
    .login-sidebar {
        min-height: 200px;
    }
    
    .login-form {
        min-height: 400px;
    }
    
    .form-control {
        font-size: 16px; /* Evita zoom em iOS */
    }
    
    .btn-login {
        min-height: 48px;
    }
}

@media (max-width: 575.98px) {
    .login-sidebar {
        min-height: 150px;
    }
    
    .login-form {
        min-height: 350px;
    }
    
    .feature-list li {
        justify-content: center;
        text-align: center;
    }
    
    .feature-list i {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}

/* Ajustes para dispositivos de toque */
@media (hover: none) and (pointer: coarse) {
    .btn-login {
        min-height: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .btn-login:hover {
        transform: none;
    }
    
    .btn-login:active {
        transform: scale(0.98);
    }
}

/* Ajustes para modo escuro */
@media (prefers-color-scheme: dark) {
    .login-form {
        background-color: rgba(30, 30, 30, 0.95);
        color: #ffffff;
    }
    
    .form-title,
    .form-label {
        color: #ffffff;
    }
    
    .form-control {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }
    
    .form-control:focus {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: var(--secondary-color);
        color: #ffffff;
    }
    
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
} 