/* Foodigo — editorial-style auth screens */
:root {
  --auth-ink: #1c1917;
  --auth-muted: #78716c;
  --auth-line: #e7e5e4;
  --auth-accent: #b45309;
  --auth-accent-hover: #92400e;
  --auth-card: #ffffff;
  --auth-input-bg: #f5f5f4;
  --auth-radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.auth-body {
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--auth-ink);
  background-color: #f7f6f4;
  background-image: radial-gradient(#d6d3d1 1px, transparent 1px);
  background-size: 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-shell {
  width: min(440px, 100%);
}

.auth-card {
  background: var(--auth-card);
  border-radius: 20px;
  padding: 40px 36px 36px;
  box-shadow:
    0 1px 2px rgba(28, 25, 23, 0.04),
    0 24px 48px -12px rgba(28, 25, 23, 0.12);
  border: 1px solid rgba(28, 25, 23, 0.06);
}

.auth-brand {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--auth-accent);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 10px;
}

.auth-brand img{
    width: 70px;
}

.auth-tagline {
  text-align: center;
  font-size: 0.95rem;
  color: var(--auth-muted);
  line-height: 1.5;
  margin-bottom: 28px;
}

.auth-alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  line-height: 1.45;
}

.auth-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-alert--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--auth-radius);
  border: 1px solid var(--auth-line);
  background: #fff;
  color: var(--auth-ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.72;
}

.auth-google svg {
  flex-shrink: 0;
}

.auth-google--disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.auth-google-slot {
  width: 100%;
  margin-bottom: 8px;
  position: relative;
}

.auth-google-slot.is-loading {
  pointer-events: none;
  opacity: 0.55;
}

.auth-google-button-host {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 48px;
}

.auth-google-button-host > div {
  width: 100% !important;
}

.auth-google-hint {
  font-size: 0.78rem;
  color: var(--auth-muted);
  line-height: 1.45;
  margin-bottom: 4px;
  text-align: center;
}

.auth-muted-note {
  font-size: 0.78rem;
  color: var(--auth-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  text-align: center;
}

.auth-muted-note code {
  font-size: 0.85em;
  background: var(--auth-input-bg);
  padding: 2px 6px;
  border-radius: 6px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 22px;
  color: var(--auth-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-line);
}

.auth-field {
  margin-bottom: 18px;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.auth-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--auth-muted);
}

.auth-forgot {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--auth-accent);
  text-decoration: none;
}

.auth-forgot:hover {
  color: var(--auth-accent-hover);
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 14px 46px 14px 16px;
  border-radius: var(--auth-radius);
  border: 1px solid transparent;
  background: var(--auth-input-bg);
  font-size: 0.95rem;
  color: var(--auth-ink);
}

.auth-input:focus {
  outline: none;
  border-color: rgba(180, 83, 9, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
}

.auth-toggle-pwd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--auth-muted);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-toggle-pwd:hover {
  color: var(--auth-ink);
  background: rgba(0, 0, 0, 0.04);
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.82rem;
  color: var(--auth-muted);
  line-height: 1.5;
}

.auth-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--auth-accent);
}

.auth-check a {
  color: var(--auth-ink);
  font-weight: 700;
  text-decoration: none;
}

.auth-check a:hover {
  color: var(--auth-accent);
}

.auth-submit {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: var(--auth-radius);
  background: linear-gradient(180deg, var(--auth-accent), var(--auth-accent-hover));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.28);
}

.auth-submit:hover {
  filter: brightness(1.05);
}

.auth-submit--dark {
  background: linear-gradient(180deg, #292524, #1c1917);
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.2);
}

.auth-footer {
  text-align: center;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--auth-muted);
}

.auth-footer a {
  color: var(--auth-accent);
  font-weight: 800;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--auth-muted);
  text-decoration: none;
}

.auth-back:hover {
  color: var(--auth-accent);
}
