/* Sign in / sign up. These pages don't extend base.html, so they load Pico
   classless + tokens.css + this file. Built on the app's tokens so they
   match the app (and its skins / dark mode) instead of plain Pico. */

html, body { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font-body);
  display: flex; justify-content: center;
  padding: calc(1.25rem + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 1rem calc(1.5rem + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}
.au { width: 100%; max-width: 400px; display: flex; flex-direction: column; }

.au-brand { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.5rem; text-decoration: none; color: var(--ink); align-self: flex-start; }
.au-brand svg { width: 2.4rem; height: 2.4rem; }
.au-brand span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.au-brand span i { font-style: italic; font-weight: 400; color: var(--muted); }

/* Warm tiles standing in for recipe photos (same tones as photo-less cards). */
.au-hero { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: .4rem; height: 9.5rem; margin: 0 0 1.4rem; }
.au-hero span { border-radius: 12px; }
.au-hero span:first-child { grid-row: 1 / 3; background: #6b3f2a; }
.au-hero span:nth-child(2) { background: #b0482f; }
.au-hero span:nth-child(3) { background: #c99a4e; }

.au h1 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .4rem; color: var(--ink); text-wrap: balance; }
.au-lede { font-size: .98rem; line-height: 1.5; color: var(--ink-soft); margin: 0 0 1.4rem; }

.au-msg { border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1.1rem; font-size: .9rem; line-height: 1.5; }
.au-msg strong { display: block; margin-bottom: .15rem; }
.au-msg a { color: inherit; font-weight: 600; }
.au-msg-error { background: var(--danger-soft); color: var(--danger); }
.au-msg-ok { background: var(--accent-soft); color: var(--accent); }
.au-msg-warn { background: var(--gold-soft); color: var(--gold); }
.au-msg small { display: block; margin-top: .3rem; opacity: .85; font-size: .82rem; }

/* Google / Apple. Class names (.google-btn, #apple-btn, #su-google-btn,
   #su-apple-btn) are what the native sign-in scripts look for -- keep them. */
.au-prov {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; box-sizing: border-box;
  height: 3.1rem; margin: 0 0 .55rem; padding: 0 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-elevated); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.au-prov:hover { background: var(--bg-sunken); }
.au-prov svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.au-prov-apple { background: #000; border-color: #000; color: #fff; }
.au-prov-apple:hover { background: #222; }

.au-div { display: flex; align-items: center; gap: .7rem; margin: .9rem 0 1rem; font-size: .82rem; color: var(--muted); }
.au-div::before, .au-div::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.au-field { margin: 0 0 .8rem; }
.au-label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .3rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.au-label .au-opt { font-weight: 400; color: var(--muted); }
.au-label button, .au-label a {
  width: auto; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
  font: inherit; font-size: .85rem; font-weight: 500; color: var(--accent); cursor: pointer; text-decoration: none;
}
.au-input-wrap { position: relative; }
.au input.au-input {
  width: 100%; box-sizing: border-box; height: 3rem; margin: 0; padding: 0 .95rem;
  border: 1.5px solid transparent; border-radius: 12px; background: var(--bg-sunken); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; box-shadow: none;
}
.au input.au-input::placeholder { color: var(--muted); }
.au input.au-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-elevated); }
.au-input-wrap input.au-input { padding-right: 4rem; }
.au-show {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: auto; min-height: 0; height: 2.3rem; margin: 0; padding: 0 .65rem; border: 0; border-radius: 8px;
  background: none; box-shadow: none; color: var(--accent); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.au-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.au-hint { margin: -.4rem 0 .9rem; font-size: .8rem; color: var(--muted); }

.au button.au-go, .au .au-go {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 3.1rem; margin: .4rem 0 0;
  border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); box-shadow: none;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.au button.au-go:hover { background: var(--accent-hover); }
.au button.au-go-quiet { background: var(--bg-sunken); color: var(--ink); }
.au button.au-go-quiet:hover { background: var(--line); }

.au-forgot { margin: .9rem 0 0; padding: .9rem 1rem; border-radius: 12px; background: var(--bg-sunken); }
.au-forgot[hidden] { display: none; }
.au-forgot p { margin: 0 0 .6rem; font-size: .88rem; color: var(--ink-soft); }
.au-forgot input.au-input { background: var(--bg-elevated); }

.au-foot { margin-top: auto; padding-top: 1.75rem; text-align: center; font-size: .92rem; color: var(--ink-soft); line-height: 2; }
.au-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.au-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.au-note { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); line-height: 1.5; text-align: center; }

.hp { display: none; }

@media (min-width: 640px) {
  body { align-items: center; }
  .au-hero { height: 10.5rem; }
}
