@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to right, #101329, #40456a);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-card {
  max-width: 60vw;
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  background: white;
}

.login-left {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-left h1 {
  font-weight: 700;
  font-size: 1.5rem;
  color: #000;
  text-align: center;
}

.login-left p {
  font-weight: 600;
  font-size: 0.625rem;
  color: #6b7280;
  text-align: center;
  /* gray-600 */
  margin-top: 0.25rem;
}

.form-control {
  background-color: #f3f4f6 !important;
  /* gray-100 */
  font-size: 0.75rem;
  color: #6b7280 !important;
  /* gray-500 */
  border: none;
  border-radius: 0.375rem;
  height: 2.25rem;
  margin-top: 1.5rem;
  padding-left: 0.75rem;
}

.form-control:focus {
  box-shadow: none;
  border-color: #d1d5e0;
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}

.captcha-container {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.captcha-image {
  background: #e5e7eb;
  border-radius: 0.375rem;
  width: 100px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  user-select: none;
  font-family: monospace, monospace;
  color: #6a2ea0;
  border: 1px solid #d1d5e0;
}

.refresh-btn {
  background: transparent;
  border: none;
  color: #6a2ea0;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.refresh-btn:focus {
  outline: none;
  box-shadow: none;
}

.login-btn {
  margin-top: 1.5rem;
  height: 2.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: linear-gradient(to right, #f32433, rgb(152, 14, 23));
  border: none;
  border-radius: 0.375rem;
  color: white;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

.login-btn:hover,
.login-btn:focus {
  background: linear-gradient(to right, #ec333f, #c9232e);
  outline: none;
  box-shadow: none;
}

.login-right {
  width: 50%;
  background: linear-gradient(to right, #3d394069, #3d394000);
  border-top-right-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  border-top-left-radius: 20%;
  border-bottom-left-radius: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  color: white;
  text-align: center;
}

.login-right img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  margin-bottom: 1rem;
}

.login-right h2 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.login-right p {
  font-weight: 600;
  font-size: 0.75rem;
  margin: 0;
}

@media (max-width: 576px) {
  .login-card {
    flex-direction: column;
    border-radius: 1rem;
    max-width: 80vw;
  }

  .login-right {
    width: 100%;
    border-radius: 0 0 1rem 1rem;
    padding: 1.5rem 1rem;
    display: none;
  }

  .login-left {
    padding: 2rem 1.5rem;
  }

  .captcha-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .captcha-image {
    width: 100%;
    height: 40px;
    font-size: 1.5rem;
  }
}

.form-control {
  border: var(--bs-border-width) solid var(--bs-border-color);
}