/* Reset básico */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body, html {
    height: 95%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f8f8;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0rem;
    min-height: 95vh;
    position: relative;
  }

  /* Logo: arriba del card */
  .logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #6200ee; /* color similar a la referencia */
    margin-bottom: 1.5rem;
    user-select: none;
  }

  /* Card solo para el form, sin bordes redondeados */
  .login-card {
    background: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.12);
    padding: 2rem 2.5rem;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 0; /* sin bordes redondeados */
  }

  @media (max-width: 600px) {
    .login-card {
      width: 95% !important;
    }

    footer {
      font-size: 0.8rem !important;
    }
  }

  .login-card h2 {
    color: #6200ee; /* azul vibrante referencia */
    text-align: center;
    font-weight: 600;
    font-size: 1.3rem;
  }

  label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #6b7280; /* azul muy suave/neutro */
  }

  input[type="text"],
  input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #d1d5db; /* gris claro */
    background: #fefefe;
    outline-offset: 2px;
  }

  input[type="text"]:focus,
  input[type="password"]:focus {
    border-color: #6200ee;
  }

  button {
    margin-top: 20px;
    width: 100%;
    background-color: #6200ee;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }

  button:hover, button:focus {
    background-color: #3600a8;
  }

  /* Footer fijo abajo horizontal a todo el ancho */
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #6200ee;
    color: white;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    height: 3.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    user-select: none;
  }

  footer a {
    color: #cfcfff;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  footer a:hover,
  footer a:focus {
    color: white;
    text-decoration: underline;
  }


#message-box {
    margin-top: 20px;
    padding: 14px 24px;
    font-weight: 500;
    color: #fff;
    z-index: 2000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
    text-align: center;
    padding-bottom: 18px;
}

#message-box.show {
    opacity: 1;
    visibility: visible;
}

#message-box.success {
    background-color: #4caf50;
}

#message-box.error {
    background-color: #f44336;
}