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

/* Reemplazar la sección del body con esto */
body {
    font-family: 'DM Sans', sans-serif;
    background-image: url('../IMG/CETISlogging.webp'); /* Ruta de tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay oscuro sobre la imagen de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Ajusta la opacidad: 0.5 = más claro, 0.8 = más oscuro */
    z-index: 0;
}

/* Asegurar que el contenido esté por encima del overlay */
.logo-header,
.login-container,
.footer {
    position: relative;
    z-index: 1;
}

/* Logo superior izquierdo - NUEVA TARJETA */
.logo-header {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 100;
}

.logo-card {
    background: white;
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #C41E3A;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.logo-info {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.2;
}

.logo-text b {
    color: #C41E3A;
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: #6B7280;
    letter-spacing: 0.3px;
}

/* Contenedor del formulario */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 32px;
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Títulos */
.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: #6B7280;
    text-align: center;
    margin-bottom: 32px;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Inputs con iconos - NUEVO */
.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: #9CA3AF;
}

.input-icon input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s ease;
}

.input-icon input:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.input-icon input:focus + i {
    color: #C41E3A;
}

.input-icon input::placeholder {
    color: #9CA3AF;
}

/* Campo de contraseña con icono de ojo - NUEVO */
.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    left: auto !important;
    cursor: pointer;
    font-size: 18px;
    color: #9CA3AF;
}

.toggle-password:hover {
    color: #C41E3A;
}

/* Olvidé contraseña */
.forgot-password {
    text-align: right;
    margin-top: -8px;
}

.forgot-password a {
    font-size: 13px;
    color: #C41E3A;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #C41E3A;
}

.checkbox-group label {
    font-size: 14px;
    color: #4B5563;
    cursor: pointer;
}

/* Botón Iniciar Sesión */
.btn-login {
    background: #C41E3A;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-login:hover {
    background: #A01830;
    transform: translateY(-2px);
}

.btn-login i {
    font-size: 18px;
}

/* Texto seguridad */
.security-text {
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.security-text i {
    font-size: 14px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 640px) {
    .logo-header {
        top: 20px;
        left: 20px;
    }
    
    .logo-card {
        padding: 8px 16px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .logo-subtitle {
        font-size: 8px;
    }
    
    .login-card {
        padding: 32px 24px;
        margin: 0 16px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .footer {
        bottom: 16px;
        font-size: 10px;
    }
}
