/* Custom Login Styles */
body.login-page {
  background-color: #ffffff;
  background-image: url("/dist/img/hometop-bg.jpeg");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}

.login-wrapper {
  display: flex;
  width: 100%;
  max-width: 1400px;
  height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  gap: 4rem;
}

.login-left {
  flex: 1.2;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 2vh;
  position: relative; /* Added for absolute positioning of header */
}

/* Custom Header in Login Left */
.login-left-header {
  position: absolute;
  top: 4rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.login-left-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.login-left-text {
  display: flex;
  flex-direction: column;
}

.login-left-title {
  margin: 0;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary); /* Adjust to match the design */
  letter-spacing: -0.02em;
}

.login-left-desc {
  margin: 0;
  font-size: 1.1rem;
  color: var(--slate-600);
}

.login-athletes-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.login-right {
  flex: 0.8;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.login-box {
  width: 100%;
  max-width: 450px !important;
}

.login-logo a {
  color: #1a237e;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
}

.login-box .card {
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.login-card-body {
  background: transparent;
  padding: 2.5rem 2rem;
  color: var(--slate-600);
}

.login-box-msg {
  color: var(--slate-500);
  font-size: 0.85rem;
  padding: 0 0 1.5rem 0;
  margin: 0;
  font-weight: 500;
}

.login-card-body .input-group-text {
  background-color: var(--white) !important;
  color: var(--slate-400) !important;
}

.login-box-title,
a.login-box-title {
  display: block;
  text-align: center;
  font-weight: 700;
  color: var(--slate-800) !important;
  font-size: 1.75rem;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
  text-decoration: none !important;
}

a.login-box-title:hover {
  text-decoration: none !important;
  color: var(--slate-800) !important;
}

.login-box-title b {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .login-wrapper {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 0 24px; /* Perbesar padding agar card tidak terlalu lebar */
  }
  .login-left {
    display: flex;
    flex: none;
    height: auto;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding-bottom: 2rem;
  }
  .login-athletes-img {
    display: none; /* Hide only the athlete image */
  }
  .login-left-header {
    position: relative;
    top: auto;
    left: auto;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .login-left-title {
    font-size: 1.75rem;
  }
  .login-left-desc {
    font-size: 1rem;
  }
  .login-right {
    justify-content: center;
    align-items: start;
    width: 100%;
  }
  .login-box {
    max-width: 360px !important; /* Batasi maksimal lebar card di mobile */
  }
  body.login-page {
    background-size: cover;
  }
}
