/* Login and signup.

   Selectors are scoped to .form-card rather than bare `form` / `button`, so
   they cannot reach the logout button sitting in the corner info box. */

body.page-login h1 { line-height: 0.6; }

.form-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin: 50px auto;
  padding: 40px;
  background: linear-gradient(145deg, #ffffff, #e6f0ff);
  border-radius: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.form-card label {
  font-size: 1.1em;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  display: block;
  text-align: left;
  width: 100%;
  font-family: 'Poppins', sans-serif;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-card input[type="text"],
.form-card input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 20px;
  font-size: 1em;
  font-family: inherit;
  background: linear-gradient(145deg, #ffffff, #e6f0ff);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  outline: none;
}

.form-card input[type="text"]:focus,
.form-card input[type="password"]:focus {
  transform: translateY(-5px) scale(1.02);
  background: linear-gradient(145deg, #d0e0ff, #ffffff);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.form-card input[type="submit"] {
  padding: 14px 30px;
  border: none;
  border-radius: 20px;
  font-size: 1em;
  font-weight: 600;
  font-family: inherit;
  background: linear-gradient(145deg, #4a6eff, #3355ff);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-card input[type="submit"]:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  background: linear-gradient(145deg, #3355ff, #1e3fff);
}

/* Room for the fixed corner boxes at the bottom of a scrolled form page. */
body.page-login,
body.page-signup { padding-bottom: 60px; }
