/* =========================================================
   forms.css — Dark Theme Login & Form Styling
   ========================================================= */

/* ---------- General Form Styling ---------- */
form {
  background: #1a1a1a;
  padding: 0.5rem 0.5rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  width: 100px;
  color: #eee;
  margin: 10px auto;
}

.logout-form {
  background: #1a1a1a;
  padding: 1rem 1rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  width: 10px;
  color: #eee;
  margin: 10px auto;
}

form h1,
form h2 {
  text-align: center;
  color: #f2f2f2;
  margin-bottom: 1rem;
}

form label {
  display: block;
  margin-bottom: 6px;
  color: #ccc;
  font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form input[type="search"],
form textarea,
form select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #121212;
  color: #eee;
  transition: border 0.2s, background 0.2s;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #64a9ff;
  background: #181818;
  outline: none;
}

/* ---------- Buttons ---------- */
form input[type="submit"],
form button {
  width: 100%;
  background: #2d7cff;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

form input[type="submit"]:hover,
form button:hover {
  background: #1e5fcc;
}

/* ---------- Centered Login Page ---------- */
body.login-page,
body:has(form[action*="login"]) {
  background: #0e0e0e;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* ---------- Form Links ---------- */
form a {
  color: #8fb4ff;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  text-align: center;
  width: 100%;
}

form a:hover {
  color: #a6c8ff;
  text-decoration: underline;
}

/* ---------- Login Heading Fix ---------- */
form h1,
form h2 {
  text-align: center;
  color: #f5f5f5;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

form[action*="login"] h1,
form[action*="login"] h2 {
  font-size: 2rem;  /* larger for main login heading */
}

form[action*="login"] {
  margin-top: 120px;
}

