* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 500px;
    width: 100%;
}

.login-header {
    text-align: center;
    color: rgb(0, 0, 0);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Acceso Público */
.acceso-publico {
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.acceso-publico h2 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.acceso-publico p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-acceso-publico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #3b96ac 0%, #113278 100%);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-acceso-publico:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-acceso-publico .icono {
    font-size: 2rem;
}

/* Enlace discreto para login de trabajadores */
.link-trabajador {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    padding: 0.5rem;
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.link-trabajador:hover {
    opacity: 1;
    color: #5568d3;
    text-decoration: underline;
}

/* Separador */
.separador {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.separador::before,
.separador::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.separador::before {
    left: 0;
}

.separador::after {
    right: 0;
}

.separador span {
    color: white;
    background: transparent;
    padding: 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Login Trabajadores */
.login-trabajadores {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-trabajadores h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.subtitulo {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-login {
    margin-top: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login-trabajador {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-login-trabajador:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-login-trabajador:active {
    transform: translateY(0);
}

/* Mensaje de Error */
.mensaje-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid #f5c6cb;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Demo */
.info-demo {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.info-demo p {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-demo strong {
    color: #667eea;
}

.info-demo code {
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .acceso-publico {
        padding: 2rem;
    }
    
    .acceso-publico h2 {
        font-size: 1.3rem;
    }
    
    .btn-acceso-publico {
        font-size: 1.1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .login-trabajadores {
        padding: 1.5rem;
    }
}
