.ethosce-login-wrapper {
  background: #fff;
  padding: 1.5rem 1.5rem 1rem;
  border-radius: 12px;
  max-width: 1000px;
  max-height: 400px; /* Keep container tight */
  margin: 2rem auto;
  box-shadow: 0 2px 16px rgba(132, 53, 26, 0.10);
  overflow: hidden;
}

.welcome-wrapper {
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}

.welcome-text {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.login-cards {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  align-items: flex-start;
  padding-bottom: 0.5rem;
}

.card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.card:first-child {
  flex: 1 1 auto;
}

.card:last-child {
  flex: 1 1 auto;
  min-height: auto;
}

.card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #222;
  letter-spacing: -0.5px;
}

.card .card-body {
  font-size: 0.95rem;
  margin-bottom: 0.4rem; /* Reduced spacing between text and button */
  color: #222;
}

.card .button {
  display: block;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  text-align: center;
  padding: 0.45rem 0.8rem;
  width: 100%;
  margin-bottom: 0.4rem;
  transition: background 0.2s ease;
  white-space: normal;
  line-height: 1.2;
}

.card .button:hover {
  background: #5c2412;
  color: #fff;
}

.footer-text {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 900px) {
  .login-cards {
    flex-direction: column;
    gap: 1.2rem;
  }

  .card:first-child,
  .card:last-child {
    max-width: 100%;
  }

  .ethosce-login-wrapper {
    max-height: none;
    overflow: auto;
  }
}
