html, body {
  height: 100%;
  margin: 0;
}

body.login-page {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#background_image {
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 580px;
  margin: auto !important;
  float: none !important;
}

.login-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 8px;
  text-align: center;
}

.login-footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.login-footer-logos img {
  max-height: 56px;
  width: auto;
  display: block;
}

.login-footer .copyright {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  max-width: 720px;
}

.soft {
  width: 100%;
  max-width: 580px;
  min-height: 320px;
  background: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 35px;
  box-shadow: 7px 7px 9px rgba(0, 0, 0, 0.15), -7px -7px 9px rgba(255, 255, 255, 0.65);
  padding: 48px 52px 40px;
  margin: 0 auto;
}

.soft.soft-login {
  min-height: 420px;
}

.soft .card-body {
  width: 100%;
  padding: 0;
}

.soft h4 {
  margin-bottom: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 1.6rem;
}

.soft .input-group {
  width: 100%;
  margin-bottom: 1.25rem !important;
}

.soft .form-control {
  height: 52px;
  font-size: 1.05rem;
}

.soft .input-group-text {
  width: 52px;
  justify-content: center;
  font-size: 1.1rem;
}

.btn-login,
.btn-reset {
  width: 180px;
  height: 56px;
  background: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 8px;
  margin: 18px auto 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #333;
  box-shadow: 7px 7px 9px rgba(0, 0, 0, 0.15), -7px -7px 9px rgba(255, 255, 255, 0.65);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-login:hover,
.btn-login:focus,
.btn-reset:hover,
.btn-reset:focus {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 8px 8px 12px rgba(0, 0, 0, 0.18), -8px -8px 12px rgba(255, 255, 255, 0.7);
}

.soft .forgot-link,
.soft .back-link {
  margin: 28px 0 0;
  text-align: left;
  font-size: 1rem;
}

.soft .forgot-link a,
.soft .back-link a {
  color: #007bff;
}
