/* Standalone login and account-creation page. */

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 2.5rem, 960px);
  min-height: 100vh;
  margin-inline: auto;
}

body > header {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 2.5rem 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* the leading "O" carries the brand color */
.brand-name::first-letter {
  color: var(--brand-accent);
}

main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
  width: 100%;
  max-width: 940px;
  padding: 0.5rem 0 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card-login {
  background: var(--surface-raised);
  border-color: var(--border-strong);
}

.card-create {
  background: var(--surface);
}

.card h1,
.card h2 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-subtitle {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.card form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.card form > button {
  width: 100%;
  margin-top: 0.25rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.checkbox input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.checkbox label {
  cursor: pointer;
}

/* inline links in the checkbox copy stay quiet until hovered */
.checkbox label a {
  text-decoration: none;
}

.checkbox label a:hover {
  text-decoration: underline;
}

.notes {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.notes p {
  margin: 0;
}

.notes strong {
  color: var(--text);
}

.notes p a {
  text-decoration: none;
}

.notes p a:hover {
  text-decoration: underline;
}

footer {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 1rem 0 2.5rem;
}

footer p {
  max-width: 52ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 760px) {
  main {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 460px;
    gap: 1rem;
  }

  .card {
    width: 100%;
    padding: 1.4rem;
  }

  .notes {
    text-align: left;
  }
}
