body#keycloak-bg {
  background-color: #cce4f6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
}

.login-box {
  background: rgba(0, 63, 114, 0.85);
  border-radius: 12px;
  padding: 2rem 1.6rem;
  width: 100%;
  max-width: 396px; /* antes era ~440px */
  min-height: 414px; /* antes era ~460px */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem; /* reduce texto base */
}

.login-box label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: white;
  text-align: left;
}

.login-box input[type="text"],
.login-box input[type="password"],
.login-box input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.login-box input[type="submit"] {
  width: 100%;
  padding: 0.65rem;
  background-color: #1a3a5d; /* Un azul más claro */
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.9rem;
}

.login-box .row-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.login-box .register-link {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.2rem;
}

.login-box .register-link a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}


.login-box .register-link {
