/* foodtracker.uk — shared auth styles (production) */
:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --border: #E4E2DC;
  --text: #1C1B1A;
  --text-secondary: #5C5A55;
  --text-muted: #8A8780;
  --primary: #3D6B5A;
  --primary-soft: #E4EFE9;
  --radius: 10px;
  --focus-ring: rgba(61, 107, 90, 0.35);
  --touch: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  padding: 24px 20px 32px;
}

.page {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.card {
  width: 100%;
}

.brand {
  margin-bottom: 40px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-lockup img.mark,
.brand-lockup .mark-img {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
}

.wordmark {
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tagline {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-secondary);
}

h1.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  height: var(--touch);
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 16px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.field input:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

button.primary {
  margin-top: 8px;
  height: var(--touch);
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

button.primary:hover {
  background: #355c4d;
}

button.primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
}

button.primary:active {
  opacity: 0.92;
}

.form-note {
  margin-top: 4px;
  min-height: 1.4em;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.form-note.is-visible {
  color: var(--text-secondary);
}

.form-note.is-info {
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
  text-align: left;
}

.footer {
  margin-top: 40px;
  text-align: center;
  padding-top: 8px;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.footer a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer span {
  color: var(--text-secondary);
  font-size: 15px;
}

.site-footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 480px) {
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px 32px;
    box-shadow: 0 8px 24px rgba(28, 27, 26, 0.04);
  }

  .footer {
    margin-top: 28px;
  }
}

.form-note.is-error {
  color: #8B3A3A;
  background: #F8EAEA;
  border: 1px solid #E2BDBD;
  border-radius: 10px;
  padding: 10px 12px;
}

/* Post-login home */
.home-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-greeting,
.home-kitchen {
  font-size: 15px;
  color: var(--text-secondary);
}

.home-greeting strong,
.home-kitchen strong {
  color: var(--text);
  font-weight: 600;
}

button.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary, #3D6B5A);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
button.linkish:hover,
button.linkish:focus-visible {
  text-decoration: underline;
}