/* Auth page styles built on the shared theme + landing styles. */

* {
  box-sizing: border-box;
}

.auth-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.auth-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  overflow: hidden;
}

.auth-card__promo {
  padding: 28px;
  border-right: 1px solid var(--border);
  background: var(--surface-muted);
}

.auth-card__form {
  padding: 28px;
  background: var(--surface);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
}

.auth-title {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text);
}

.auth-subtitle {
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.6;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

/* Sign up / sign in toggle */
.toggle {
  display: inline-flex;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 10px;
}

.toggle button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  font-weight: 700;
}

.toggle button.is-active {
  background: var(--accent);
  color: #ffffff;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#signupFields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
}

input:focus {
  outline: 2px solid rgba(15, 23, 42, 0.22);
  border-color: rgba(15, 23, 42, 0.22);
}

.helper-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Messages */
.alert {
  margin: 12px 0 2px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
  color: #7f1d1d;
  font-weight: 700;
}

.success {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
  color: #14532d;
}

.success strong {
  color: #16a34a;
}

.secure-notes {
  margin-top: 16px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.secure-notes summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.secure-notes summary::-webkit-details-marker {
  display: none;
}

.secure-notes summary::after {
  content: '▾';
  color: var(--text-muted);
  font-weight: 800;
}

.secure-notes[open] summary::after {
  content: '▴';
}

.secure-notes ul {
  margin: 8px 0 0 16px;
  padding: 0;
  color: var(--text-muted);
}

.secure-notes li {
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .auth-card__promo {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
