/* Basic styling for account pages (signup, login, password reset).
   Self-contained — doesn't depend on the site's build-hashed CSS file. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f7f7f7;
  min-height: 100vh;
}

.account-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.account-box {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
}

.account-box h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.account-box label {
  display: block;
  margin: 1rem 0 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.account-box input[type="text"],
.account-box input[type="email"],
.account-box input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.account-box input:focus {
  outline: 2px solid #000;
  outline-offset: 1px;
}

.account-box button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.account-box button:hover {
  background: #333;
}

.account-box p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.account-success {
  background: #e6f4ea;
  color: #1e7a34;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.account-errors {
  background: #fdecea;
  color: #b3261e;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  list-style: none;
}

.account-errors li + li {
  margin-top: 0.25rem;
}

.account-switch {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.account-switch a {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
}

/* Dark theme — same palette as the rest of the app (see e.g.
   pages/legals/index.php's html[data-theme="dark"] rules). */
html[data-theme="dark"] body { background: #14171a; color: #e2e4de; }

html[data-theme="dark"] .account-box {
  background: #1e231e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .account-box input[type="text"],
html[data-theme="dark"] .account-box input[type="email"],
html[data-theme="dark"] .account-box input[type="password"] {
  background: #14171a;
  border-color: #333;
  color: #e2e4de;
}

html[data-theme="dark"] .account-box input:focus {
  outline-color: #8fcf95;
}

html[data-theme="dark"] .account-box button {
  background: #4CAF50;
  color: #fff;
}

html[data-theme="dark"] .account-box button:hover {
  background: #5cbf5f;
}

html[data-theme="dark"] .account-box p { color: #b5b9b0; }

html[data-theme="dark"] .account-success {
  background: #16261a;
  color: #8fcf95;
}

html[data-theme="dark"] .account-errors {
  background: #2a1616;
  color: #ff8a8a;
}

html[data-theme="dark"] .account-switch a { color: #8fcf95; }
