/* Shared styling for the standalone auth pages (login.html, reset.html).
   Extracted from login.html's inline <style> block so both pages stay in sync.
   Kept out of style.css because app.html and index.html have no use for it. */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.login-topbar {
  width: 100%;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.login-topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.login-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
}
.login-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.login-back:hover { color: var(--accent); }
.landing-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 2rem;
}
.landing-hero {
  text-align: center;
  max-width: 480px;
}
.landing-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}
.auth-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0.875rem;
}
.auth-field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.auth-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.auth-field input:focus {
  border-color: var(--accent);
}
.auth-btn-primary {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}
.auth-btn-primary:hover { background: var(--accent2); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: default; }
.auth-divider {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.875rem 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 1.5rem);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-btn-secondary {
  width: 100%;
  padding: 9px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-btn-secondary:hover { background: var(--accentSoft); }
.auth-toggle-row {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-toggle-row button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
/* Discreet "forgot password" link, right-aligned under the password field. */
.auth-forgot-row {
  text-align: right;
  margin: -0.5rem 0 0.25rem;
}
.auth-forgot-row button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.auth-forgot-row button:hover { color: var(--accent); }
.auth-message {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  border-radius: 6px;
  padding: 8px 10px;
}
.auth-message.error { background: var(--dangerBg); color: var(--danger); }
.auth-message.success { background: var(--okBg); color: #166534; }
[hidden] { display: none !important; }
