/* Authentication & authorization screens — use with main.css + shop.css + pages.css */

.auth-page .shop-main {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  min-height: calc(100vh - var(--topbar-h) - var(--header-h) - 2rem);
  min-height: calc(100svh - var(--topbar-h) - var(--header-h) - 2rem);
}

.auth-shell {
  max-width: 960px;
  margin: 130px auto 0;
  display: grid;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: 0 28px 70px rgba(26, 23, 20, 0.07);
}

@media (min-width: 880px) {
  .auth-shell {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.05fr);
    min-height: min(560px, calc(100svh - var(--topbar-h) - var(--header-h) - 4rem));
  }
}

.auth-brand {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 220px;
  color: var(--color-white);
  background-color: var(--color-charcoal);
  background-image:
    linear-gradient(165deg, rgba(26, 23, 20, 0.2) 0%, rgba(26, 23, 20, 0.88) 100%),
    url("https://picsum.photos/seed/barkod-auth/900/1200");
  background-size: cover;
  background-position: center;
}

.auth-brand__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0;
  font-weight: 500;
}

.auth-brand__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

.auth-brand__copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  max-width: 28ch;
}

.auth-brand__accent {
  width: 2.5rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 0.25rem;
}

.auth-form-wrap {
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-head {
  margin-bottom: 1.75rem;
}

.auth-form-head__breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.65rem;
}

.auth-form-head__breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.auth-form-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.4rem;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

.auth-form-head__intro {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.55;
  max-width: 36ch;
}

.auth-form .page-form input,
.auth-form .page-form select {
  font-family: var(--font-ui);
}

.auth-form .form-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  color: var(--color-charcoal);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: -0.35rem 0 1rem;
}

.auth-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-charcoal);
  cursor: pointer;
}

.auth-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--color-accent);
}

.auth-row .link-accent {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.88rem;
  color: var(--color-muted);
  text-align: center;
}

.auth-foot a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.auth-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.auth-legal {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.auth-legal a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Password strength hint */
.auth-hint {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: -0.65rem 0 1rem;
}

/* Unauthorized / access denied */
.auth-denied-shell {
  max-width: 520px;
  margin: 130px auto 0;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  box-shadow: 0 20px 50px rgba(26, 23, 20, 0.06);
}

.auth-denied__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--color-blush);
  color: var(--color-accent);
  border: 1px solid rgba(232, 78, 27, 0.25);
}

.auth-denied__badge svg {
  width: 1.5rem;
  height: 1.5rem;
}

.auth-denied__code {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

.auth-denied__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--color-charcoal);
}

.auth-denied__text {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.auth-denied__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.auth-denied__actions .btn {
  min-width: 10rem;
}

@media (max-width: 879px) {
  .auth-brand {
    min-height: 200px;
  }
}
