html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Instrument Sans', sans-serif;
}

.main {
  min-height: 100%;
  display: flex;
  overflow: hidden;
  background-color: white;
  justify-content: center;
  align-items: center;
}

.maincenteraria {
  background-color: white;
  margin: auto;
  width: 100%;
  padding: 15px;
}

.card-align {
  display: flex;
  justify-content: center;
}

.card {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 900px;
  /* desktop limit */
  min-height: auto;
  /* no fixed height */
  padding: 20px;
  border-radius: 8px;
}

/* Responsive image */
.image-section {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Logo styling */
.logo-container {
  text-align: right;
  margin-bottom: 15px;
}

.application-logo {
  max-width: 105px;
  height: auto;
}

/* Dropdown */
.dropdown-container {
  width: 100%;
  margin-top: 30px;
}

.dropdown-container select {
  width: 100%;
  padding: 7px;
  height: 42px;
  font-size: 14px;
  color: #555;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

.username,
.password {
  width: 100%;
  margin-top: 15px;
}

.username input,
.password input {
  font-size: 14px;
  height: 42px;
  width: 100%;
}

/* Button */
.login-button,
.idp-login-button {
  width: 100%;
  padding: 10px;
  height: 45px;
  font-size: 14px;
  color: white;
  border: none;
  border-radius: 5px;
  background-color: #4CAF50;
  margin-top: 15px;
}

.login-button:hover,
.idp-login-button:hover {
  background-color: #45a049;
}

/* Error message */
.error-message {
  color: red;
  font-size: 12px;
  margin-top: 10px;
}

/* Links */
.links {
  margin-top: 18px;
}

.links .link {
  color: #007BFF;
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.link:hover {
  text-decoration: underline;
}

/* Bottom logo */
.bottom-logo-container {
  text-align: right;
  margin-top: 20px;
}

.company-logo {
  max-width: 92px;
}

/* Realm name */
.realm-name {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: #555;
  margin-bottom: 20px;
}

/* Password toggle */
.password-wrapper {
  position: relative;
}

#toggle-password {
  position: absolute;
  top: 35%;
  right: 10px;
  cursor: pointer;
  width: 20px;
  height: 18px;
}

#toggle-password:hover {
  opacity: 0.7;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
  .card {
    width: 90%;
    padding: 15px;
  }

  .image-section {
    display: none !important;
  }

  .application-logo {
    max-width: 90px;
  }
}

@media (max-width: 767.98px) {
  .realm-name {
    font-size: 20px;
    padding: 0 10px;
  }

  .links .link {
    font-size: 12px;
  }

  #toggle-password {
    right: 6px;
    width: 18px;
    height: 16px;
  }
}