/* Base */
body {
  margin: 0;
  font-family: 'Courier New', monospace;
  background-color: #1f3a29;
  color: #d9f5e6;
  overflow-x: hidden;
  height: 100vh;
}

/* Page layout */
.login-page {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
}

/* Branding */
.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 100px;
}

.branding .circle {
  width: 60px;
  height: 60px;
  background-color: #d9f5e6;
  border-radius: 50%;
}

.branding h1 {
  font-size: 2rem;
  color: #d9f5e6;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  fill: #1f4b38;
}

.toggle-password:hover svg {
  fill: #000;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  text-align: center;
  margin: 10px 0;
}

/* Login box */
.login-box {
  background-color: #d9f5e6;
  color: #000;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  width: 320px;
  box-sizing: border-box;
  padding-right: 28px;
}

.login-box h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Input fields */
.login-box input {
  width: 92%;
  padding: 0.6rem;
  margin: 0.5rem 0;
  border-radius: 1rem;
  border: 1px solid #1f4b38;
  font-size: 1rem;
  font-family: inherit;
}

.branding-text {
  display: flex;
  flex-direction: column;
  /* Stack vertically */
  line-height: 1.2;
}

.branding-text h1 {
  margin: 0;
}

.tagline {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
  color: #b0d9c3;
}


/* Submit button */
.login-box button[type="submit"] {
  width: 100%;
  padding: 0.6rem;
  background-color: #1f4b38;
  color: #d9f5e6;
  border: none;
  border-radius: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* Sign up link */
.signup-text {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.signup-text a {
  color: #1f4b38;
  font-weight: bold;
  text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {

  .circle {
    display: none;
  }

  .login-page {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .branding {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 0px;
  }

  .branding h1 {
    font-size: 2rem;
    margin-bottom: 0px;
  }

  .login-box {
    width: 100%;
    max-width: 350px;
    padding: 1.5rem;
  }
}