body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
  min-height: 100vh;
}

.main-container {
  display: flex;
  height: 100vh;
}

.left-img {
  flex: 1.2;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0eafc;
}

.right-panel {
  flex: 0.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 32px;
  background: #fff;
}

.logo,
.login-title,
.register-title {
  width: 120px;
  margin-bottom: 16px;
}

.login-title,
.register-title,
.reset-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #2b5876;
  letter-spacing: 1px;
  text-align: center;
}

.login-form,
.register-form,
.reset-form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-container {
  position: relative;
  margin-bottom: 0px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.input-container input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #b0c4de;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  display: block;
}

.input-container input:focus {
  border-color: #2b5876;
}

.input-container label {
  position: absolute;
  left: 16px;
  top: 12px;
  color: #888;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s;
}

.input-container input:not(:placeholder-shown) + label,
.input-container input:focus + label {
  top: -12px;
  left: 8px;
  font-size: 0.85rem;
  color: #2b5876;
  background: #fff;
  padding: 0 4px;
  border-radius: 4px;
}

.error-message {
  color: #d32f2f;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 2px;
  display: none;
}

.error input {
  border-color: #d32f2f !important;
}

.showHidePassword {
  position: absolute;
  right: 16px;
  top: 14px;
  cursor: pointer;
  color: #888;
  font-size: 1.1rem;
}

.login-btn,
.register-btn,
.reset-btn {
  width: 100%;
  padding: 14px 0;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #2b5876 0%, #4e4376 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
  margin-bottom: 12px;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.login-btn:hover,
.register-btn:hover,
.reset-btn:hover {
  background: linear-gradient(90deg, #4e4376 0%, #2b5876 100%);
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
}

.login-link {
  text-align: center;
  margin-top: 8px;
  font-size: 0.95rem;
}

.login-link a {
  color: #2b5876;
  text-decoration: none;
  margin-left: 0.5rem;
  font-weight: 600;
  transition: text-decoration 0.2s;
}

.login-link a:hover {
  text-decoration: underline;
}

.forgot-link {
  text-align: right;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.forgot-link a {
  color: #2b5876;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.forgot-link a:hover {
  text-decoration: underline;
}

.lang-switch {
  position: absolute;
  top: 32px;
  right: 48px;
  display: flex;
  gap: 12px;
}

.langBtn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.copyright {
  text-align: center;
  margin-top: 32px;
  color: #888;
  font-size: 0.95rem;
}

.iti {
  width: 100%;
}

.g-recaptcha {
  margin: 12px 0 0 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
    min-height: 0;
    width: 98vw;
  }
  .left-img {
    min-height: 220px;
    height: 220px;
  }
  .right-panel {
    padding: 32px 12px;
  }
}

@media (max-width: 600px) {
  body {
    min-height: 0;
    height: auto;
    display: block;
    align-items: unset;
    justify-content: unset;
  }
  .main-container {
    width: 100vw;
  }
  .left-img {
    display: none;
  }
  .right-panel {
    flex: 1;
    padding: 8vw 4vw;
    min-height: unset;
    height: auto;
    justify-content: center;
  }
  .login-title,
  .register-title,
  .reset-title {
    font-size: 2rem;
    margin-bottom: 24px;
  }
  .login-form,
  .register-form,
  .reset-form {
    max-width: 98vw;
  }
  .input-container input {
    font-size: 1.1rem;
    padding: 16px 16px;
    width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
    display: block;
  }
  .input-container label {
    font-size: 1.1rem;
    left: 16px;
    top: 16px;
  }
  .input-container input:not(:placeholder-shown) + label,
  .input-container input:focus + label {
    top: -10px;
    left: 8px;
    font-size: 0.9rem;
  }
  .login-btn,
  .register-btn,
  .reset-btn {
    font-size: 1.1rem;
    padding: 16px 0;
  }
  .copyright {
    font-size: 0.95rem;
    margin-top: 24px;
  }
  .error-message {
    font-size: 1rem;
    padding-left: 2px;
    margin-top: 2px;
    margin-bottom: 2px;
  }
}
