#loginSignupForm {
  margin-top: 1rem;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}
#loginSignupForm button[type="submit"]:hover {
  background: #0056b3;
}

/* Flex container for alignment */
.login-links {
  flex-wrap: wrap;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .buttonlink {
    padding: 10px 16px;
    font-size: 16px;
  }
  .login-links {
    flex-direction: column;
    gap: 12px;
  }
}
/* Reset basic form styling */
#loginSignupForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  /*width: 100%;*/
  max-width: 400px;
  font-family: 'Segoe UI', sans-serif;
}
#loginSignupForm p{
    margin-top: 0.75rem; font-size: 0.85rem; text-align: center; color: #555;
}
.panel {
    margin-left:0.5rem;
  padding: 1rem;
  border-radius: 6px;
  color: #ccc;
  font-family: monospace;
}

/* Input Fields */
#login-form input {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border 0.2s;
}

#login-form input:focus {
  border-color: #007bff;
  outline: none;
}
/* Input Fields */
#loginSignupForm input {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border 0.2s;
}

#loginSignupForm input:focus {
  border-color: #007bff;
  outline: none;
}

/* Login button */
#loginSignupForm button[type="submit"] {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
/* Container styling */
#signupForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  /*width: 100%;*/
  max-width: 400px;
  font-family: 'Segoe UI', sans-serif;
  margin: 0 auto;
}

/* Headline */
#signupForm h2 {
  font-size: 20px;
  font-weight: 600;
  color: #004aad;
  margin-bottom: 1rem;
  text-align: center;
}

/* Input Field */
#signupForm input[type="email"],
#signupForm input[type="text"],
#signupForm input[type="password"] {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s;
}

#signupForm input:focus {
  border-color: #007bff;
  outline: none;
}

/* Submit Button */
#signupForm button[type="submit"] {
  background-color: #004aad;
  color: white;
  border: none;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#signupForm button[type="submit"]:hover {
  background-color: #003380;
}

input[type="password"] + button,
input[type="text"] + button {
  margin-left: 10px;
  font-size: 0.8em;
  padding: 4px 8px;
  cursor: pointer;
}
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.password-wrapper input {
  flex: 1;
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #555;
}
#connect-button.success {
  color: green;
}

#connect-button.error {
  color: crimson;
}

#connect-button.info {
  color: #0052cc;
}
#resetPasswdForm{
    width: 30em;
}
#resetPasswdForm {
  /*display: flex;
  flex-wrap: wrap;*/
}

/*
.password-wrapper input[type="text"],input[type="password"], input[type="email"] {
    margin: 8px;
  width: 250px;
  margin-right: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
 */

#resetPasswdBtn{
    margin: 8px;
  width: 250px;
  margin-right: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* Terms section */
.terms {
  font-size: 12px;
  color: #666;
  margin-top: -0.5rem;
  text-align: center;
}

.terms a {
  color: #007bff;
  text-decoration: underline;
}
#connect-status{
    margin-top: 0.5rem; font-size: 0.9rem; text-align: center;
}

/* Style the Sign Up and Forgot Password buttons */
#signupDialogBtn,
#loginResetPasswdBtn {
  background-color: transparent;
  color: #00bfff;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0.5rem 0 0;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

#signupDialogBtn:hover,
#loginResetPasswdBtn:hover {
  background-color: rgba(0, 191, 255, 0.1);
  color: #fff;
  border-color: #00bfff;
  cursor: pointer;
  transform: scale(1.03);
}

body {
  background: linear-gradient(to bottom right, #1e1e2f, #2a2a3d);
  color: #fff;
  min-height: 100vh;
  padding: 2rem;
  font-family: 'Inter', system-ui, sans-serif;
}

body h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #007bff;
}

/* Reset Password Form Container */
#resetPasswdForm {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: #2a2a3d;
  border-radius: 12px;
  border: 1px solid #3a3a4d;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Password Wrapper Improvements */
#resetPasswdForm .password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  background: #1e1e2f;
  border: 1px solid #3a3a4d;
  border-radius: 6px;
  padding: 0.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#resetPasswdForm .password-wrapper:focus-within {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#resetPasswdForm .password-wrapper input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

#resetPasswdForm .password-wrapper input::placeholder {
  color: #666;
}

#resetPasswdForm .toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #aaa;
  padding: 0.5rem;
  transition: color 0.2s;
  z-index: 1;
}

#resetPasswdForm .toggle-password:hover {
  color: #fff;
}

/* Submit Button */
#resetPasswdForm .submit-button,
#resetPasswdForm #resetPasswdBtn {
  width: 100%;
  padding: 0.875rem 2rem;
  background: linear-gradient(to right, #0052cc, #007bff);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin: 1.5rem 0 0 0;
}

#resetPasswdForm .submit-button:hover,
#resetPasswdForm #resetPasswdBtn:hover {
  background: linear-gradient(to right, #003fa6, #005ec4);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

#resetPasswdForm .submit-button:active,
#resetPasswdForm #resetPasswdBtn:active {
  transform: translateY(0);
}

/* Password Requirements Section */
#resetPasswdForm h3 {
  color: #ccc;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid #3a3a4d;
}

#resetPasswdForm ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

#resetPasswdForm ul li {
  color: #aaa;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

#resetPasswdForm ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: bold;
}

/* Fix nested ul */
#resetPasswdForm ul ul {
  margin-top: 0.5rem;
  margin-left: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  
  #resetPasswdForm {
    padding: 1.5rem;
  }
  
  body h2 {
    font-size: 1.5rem;
  }
}

