body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  
  .login-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 360px;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #0f172a;
  }
  
  input[type="text"],
  input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
  }

  select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: white;
    color: #0f172a;

    
    appearance: none; /* Oculta la flecha nativa */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%230f172a" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
    padding-right: 2.5rem; /* Espacio para la flechita */
  }
  
  button {
    width: 100%;
    padding: 0.8rem;
    background-color: #0f172a;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  button:hover {
    background-color: #1e293b;
  }
  
  .link {
    margin-top: 1rem;
    text-align: center;
  }
  
  .link a {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
  }
  
  .success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.75rem 1rem;
    border: 1px solid #6ee7b7;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
  }
  