/* Styles for the Signup Wall */
.signup-wall, .login-wall {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    display: flex; /* Use flexbox to center the content */
}

.signup-form-container, .login-form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    position: relative; /* Ensure the close button is positioned relative to this container */
}

.signup-form-container h2, .login-form-container h2 {
    margin-bottom: 20px;
}

.signup-form-container label, .login-form-container label {
    display: block;
    margin-top: 10px;
}

.signup-form-container input, .login-form-container input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.signup-form-container form button, .login-form-container form button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #ff5a5f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.signup-form-container form button:hover, .login-form-container form button:hover {
    background-color: #e14e50;
}

#message {
    margin-top: 20px;
    color: green;
}

/* Close Button Styles */
.close-btn {
    position: absolute;
    top: 10px;  /* Position the button at the top */
    right: 10px; /* Position the button at the right */
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.close-btn:hover {
    color: #ff5a5f; /* Color on hover for better visibility */
}

#showSignupForm {
    display: block;
    margin: 10px auto 0 auto; /* Center horizontally */
    background: none;
    border: none;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    padding: 5px 0;
}

#showSignupForm:hover {
    text-decoration: underline;
    color: #ff5a5f; /* Match your theme's accent color */
}

/* "Already have an account? Log in" toggle */
#showLoginForm {
  display: block;
  margin: 10px auto 0;   /* center under the submit */
  background: none;
  border: none;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  padding: 5px 0;
}

#showLoginForm:hover {
  text-decoration: underline;
  color: #ff5a5f;        /* match theme accent */
}

#showLoginForm:focus-visible {
  outline: 2px solid #ff5a5f;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Close Button Styles (replace your existing .close-btn rule) */
.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;           /* show it */
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;                  /* tap target */
  background: transparent;
  border: none;
  border-radius: 9999px;
  font-size: 22px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.close-btn:hover { 
  background: rgba(0,0,0,0.06); 
  color: #ff5a5f; 
}

.close-btn:focus-visible {
  outline: 2px solid #ff5a5f;
  outline-offset: 2px;
}
