/* Modern auth styling (aligned with Settings/Timeline/Genogram design language) */
:root {
  --accent: #667eea;
  --accent-2: #764ba2;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --surface: #f8f9ff;
  --surface-strong: #ffffff;
  --border: #e5e7f2;
  --text-main: #1f2341;
  --text-muted: #5c6185;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 600px at 20% 10%, rgba(102, 126, 234, 0.22), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(118, 75, 162, 0.18), transparent 60%),
    linear-gradient(180deg, #f7f8ff 0%, #eef1ff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 24px;
  color: var(--text-main);
}

.login-container {
  width: 100%;
  max-width: 420px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
  text-align: center;
}

.logo {
  width: 96px;
  display: block;
  margin: 0 auto 14px auto;
}

h2 {
  margin: 0 0 18px 0;
  color: var(--text-main);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.2px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.input-group {
  margin: 0;
  width: 100%;
}

.input-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input::placeholder {
  color: #8a90b3;
}

.input-group input:focus {
  border-color: rgba(102, 126, 234, 0.75);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
}

button[type='submit'] {
  width: 100%;
  padding: 12px 14px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(102, 126, 234, 0.28);
  filter: brightness(0.98);
}

button[type='submit']:active {
  transform: translateY(0);
}

/* Auth-specific helpers (keeps templates free of inline styling) */
.auth-error {
  color: #dc3545;
  margin: 0 0 12px 0;
  font-size: 14px;
  text-align: center;
}

.signup-link {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.signup-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.signup-link a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}