/* Main container styling */
.ids-main .ids-main__content {
  background: rgba(255, 255, 255, 0.70); /* 70% transparency */
  min-height: 5rem; /* Reduced height */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 4rem auto;
  transition: min-height 0.3s ease-in-out; /* Smooth height transition */
  max-width: 500px; /* Optional: constrain width for better layout */
}

/* Center the logo */
.iam-login-columned .ids-login-tenant__logo,
.iam-login-columned .ids-login-sp__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  margin-bottom: 1rem;
}

.iam-login-columned .ids-login-tenant__logo img,
.iam-login-columned .ids-login-sp__logo img {
  max-height: 50px;
  max-width: 150px;
  object-fit: contain;
  margin: 0 auto; /* Center the image */
  display: block;
}

/* Header styling with reduced bottom padding */
.iam-container__header {
  padding: 1.5rem 2rem 0.5rem; /* Reduced bottom padding */
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

/* Login column layout with reduced spacing */
.iam-login-columned {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Reduced gap between elements */
  align-items: center;
  margin-top: 0.5rem; /* Reduced space below header */
}

/* Text alignment for LTR */
[dir="ltr"] .iam-login-columned .iam-login-columned__begin {
  text-align: left;
  width: 100%;
}

/* Footer styling */
.ids-main .ids-main__content .iam-container__footer {
  background: transparent;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

/* General image styling */
img {
  height: 50px !important;
  object-fit: contain;
}

/* Row for "Keep me signed in" and "Forgot Password?" */
.iam-login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.9rem;
  color: #444;
  margin-top: 1rem;
}

.iam-login-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.iam-login-options a {
  color: #0078d4;
  text-decoration: none;
}

.iam-login-options a:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  .iam-login-columned {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }

  [dir="ltr"] .iam-login-columned .iam-login-columned__begin {
    text-align: left;
    max-width: 400px;
  }
}