body {
            background-color: var(--light);
            font-family: 'Segoe UI', Roboto, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            color: var(--text);
        }
        
        .login-container {
            width: 100%;
            max-width: 900px;
            background: white;
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            display: flex;
        }
        
        .services-column {
            flex: 1;
            padding: 40px;
            background: linear-gradient(135deg, rgba(26, 43, 80, 0.9), rgba(26, 43, 80, 0.95));
            color: white;
        }
        
        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .login-header img {
            height: 60px;
            margin-bottom: 15px;
        }
        
        .welcome-title h2 {
            color: white;
            margin-bottom: 10px;
            font-size: 24px;
        }
        
        .welcome-title p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 15px;
        }
        
        .services-list {
            margin-top: 30px;
        }
        
        .service-item {
            display: flex;
            align-items: center;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 12px;
            transition: all 0.3s;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .service-item:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(5px);
        }
        
        .service-icon {
            margin-right: 15px;
            color: var(--light);
            font-size: 20px;
            min-width: 25px;
            text-align: center;
        }
        
        .login-column {
            flex: 1;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .login-body h3 {
            color: var(--primary);
            margin-bottom: 25px;
            font-size: 22px;
            text-align: center;
        }
        
        .input-field {
            margin-bottom: 20px;
        }
        
        
        .input-field input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid var(--gray);
            border-radius: 8px;
            font-size: 16px;
            transition: border 0.3s;
        }
        
        .input-field input:focus {
            border-color: var(--accent);
            outline: none;
        }

        .input-container {
          position: relative;
          display: flex;
          align-items: center;
      }

      .icon {
            position: absolute;
            left: 15px;
            color: #00A859;
            font-size: 16px;
            pointer-events: none;
        }
        .input-box {
          width: 100%;
          padding: 14px 16px 14px 45px;
          border: 2px solid #E0E5EC;
          border-radius: 8px;
          font-size: 16px;
          transition: all 0.3s;
          background-color: #FFFFFF;
          box-shadow: 0 2px 4px rgba(0,0,0,0.05);
      }

      .input-box:focus {
    border-color: #00A859;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}

.input-box::placeholder {
    color: #7A8BA9;
    opacity: 1;
}

.input-box:focus::placeholder {
    color: #A0AEC0;
}


        
        .btn-login {
            background-color: var(--accent);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            font-size: 16px;
            margin-top: 10px;
        }
        
        .btn-login:hover {
            background-color:var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(255, 122, 0, 0.3);
        }
        
        .forgot-password {
            color: var(--primary);
            text-decoration: none;
            font-size: 14px;
            text-align: center;
            display: block;
            margin-top: 15px;
        }
        
        .forgot-password:hover {
            text-decoration: underline;
        }
        
        .powered-by {
            text-align: center;
            margin-top: 30px;
            color: #777;
            font-size: 13px;
        }
        
        .powered-by a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }
        
        .powered-by a:hover {
            text-decoration: underline;
        }

        .device-icons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 15px;
            color: var(--primary);
            font-size: 20px;
        }

        .device-icons i {
            opacity: 0.8;
            transition: all 0.3s;
        }

        .device-icons i:hover {
            opacity: 1;
            color: var(--accent);
            transform: scale(1.1);
        }

        .tratamiento-datos-container {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

        .tratamiento-datos-container.visible {
            display: block;
        }

        .checkbox-wrapper {
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .checkbox-wrapper input[type="checkbox"] {
            margin-top: 3px;
            width: 18px;
            height: 18px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .checkbox-wrapper label {
    color: white;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper label a {
    color: var(--light);
    text-decoration: underline;
    font-weight: 600;
}

.mensaje-tratamiento {
    color: #fff; 
}

.checkbox-wrapper label a:hover {
    color: white;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
    }
    .login-container {
        background: #1E1E1E;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    .input-field input {
        background: #2D2D2D;
        border-color: #444;
        color: white;
    }
    .login-body h3,
    .input-field label,
    .forgot-password {
        color: #EEE;
    }
    .device-icons {
        gap: 15px;
        font-size: 18px;
    }

    .tratamiento-datos-container {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    .checkbox-wrapper label {
        color: #FFF;
    }
    .checkbox-wrapper label a {
        color: var(--accent);
    }
    .mensaje-tratamiento {
        color: #fff;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background: #f5f7fa;
        color: #222;
    }
    .tratamiento-datos-container {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
    }
    .checkbox-wrapper label {
        color: #222; 
    }
    .checkbox-wrapper label a {
        color: var(--primary);
    }
    .checkbox-wrapper label a:hover {
        color: var(--accent);
    }
    .mensaje-tratamiento {
        color: #000;
    }
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;   
    max-width: 100%;          
    border-radius: 0;         
  }

  .services-column,
  .login-column {
    padding: 20px;            
  }

  .login-header img {
    height: 50px;             
  }

  .login-body h3 {
    font-size: 20px;         
  }

  .btn-login {
    font-size: 18px;         
    padding: 16px;
  }

  .service-item {
    flex-direction: column;  
    align-items: flex-start;
  }

  .service-icon {
    margin-bottom: 8px;
    font-size: 24px;         
  }
}

@media (max-width: 480px) {
  body {
    align-items: flex-start;  
    padding: 10px;
  }

  .login-container {
    box-shadow: none;         
  }

  .input-box,
  .input-field input {
    font-size: 14px;         
    padding: 12px;
  }

  .forgot-password {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  body {
    background: #f5f7fa !important;
    color: #222 !important;
  }
  .login-container {
    background: #fff !important;
  }
}

/* --- Ajustes de inputs y textos en móviles --- */
@media (max-width: 768px) {
  /* Inputs más claros */
  .input-box,
  .input-field input {
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    color: #222 !important;   /* Texto oscuro para buena lectura */
  }

  .input-box::placeholder,
  .input-field input::placeholder {
    color: #666 !important;   /* Placeholder gris medio */
  }

  /* Título "Iniciar Sesión" */
  .login-body h3 {
    color: #222 !important;   /* Texto oscuro */
    font-weight: 700;
  }

  /* Enlace "Olvidaste tu contraseña" */
  .forgot-password {
    color: #007bff !important; /* Azul legible */
    font-size: 14px;
    font-weight: 500;
  }

  .forgot-password:hover {
    text-decoration: underline;
    color: #0056b3 !important;
  }
}