/* css/theme.css */

/* Font (Poppins + system fallback) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

:root {
  /* Generelle farger */
  --page-bg: #ffffff;
  --ink: #111111;
  --ink-inv: #ffffff;
  --muted: #cfcfcf;

  /* Brand / aksentfarger */
  --accent: #faab11;
  --accent-soft: #faab11;
  --line: #312783;

  /* Mørk bakgrunn / header/footer */
  --dark: #000000;
  --dark-surface: #0b0b0b;

  /* Header/layout-variabler (helt fint å ha her) */
  --desk-header-h: 150px;
  --mob-header-h: 120px;
  --container-w: 1200px;

  /* Produktside-palett (hentet fra Produkt.aspx) */
  --product-text: #1c1c1c;
  --product-muted: #6c6c6c;
  --product-line: #e9e9ee;
  --product-chip: #f4f6ff;
  --product-chip-text: #3b3b3b;

  /* Cart-side brand (fra Cart.aspx) */
  --cart-brand: #3a33a5;
  --cart-ink: #222222;
  --cart-muted: #6b7280;
}

/* Generell base-typografi */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Poppins", Arial, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ===== LOGIN BUTTON I HEADER ===== */

/* Desktop: søk + login + handlekurv */
.d-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

/* Login-knapp desktop + mobil */
.d-login-btn,
.m-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.d-login-btn:hover,
.m-login-btn:hover {
  background: var(--accent);
  color: #000;
  text-decoration: none;
}

.d-login-btn:focus-visible,
.m-login-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Desktop handlekurv */
.d-cart {
  width: 28px;
  height: 28px;
  background: url("../Img/shopping-cart.svg") no-repeat center/contain;
  filter: invert(1);
}

/* Mobil actions */
.m-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-login-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

@media (max-width: 520px) {
  .m-login-btn {
    padding: 0 10px;
    font-size: 13px;
  }
}

/* =========================
   HEADER / NAV
   Legg i css/theme.css
   ========================= */

/* Ekstra variabel for felles bredde på søk + meny */
:root {
  --actions-w: 860px;
}

/* Hjelpeklasse for skjult label */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Desktop vs mobil */
.d-header {
  display: block;
}

.m-header {
  display: none;
}

@media (max-width: 900px) {
  .d-header {
    display: none;
  }

  .m-header {
    display: block;
  }
}

/* =========================
   DESKTOP HEADER
   ========================= */

.d-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 5px solid var(--accent);
  box-shadow: 0 1px 0 var(--line) inset;
}

.d-nav {
  max-width: var(--container-w);
  height: var(--desk-header-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.d-brand {
  flex: 0 0 auto;
}

.d-brand img {
  display: block;
  height: calc(var(--desk-header-h) - 20px);
  width: auto;
}

.d-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: auto;
  flex: 1;
  min-width: 0;
}

/* Felles bredde for topprad og menyrad */
.d-actions,
.d-menuRow {
  width: 100%;
  max-width: var(--actions-w);
  margin: 0 auto;
}

/* Topprad: søk + login + handlekurv */
.d-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 12px;
}

/* Søk */
.d-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.d-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #0e0e0e;
  color: var(--ink-inv);
  padding: 0 14px;
  font: inherit;
}

.d-search input::placeholder {
  color: #9a9a9a;
}

.d-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.d-search button {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.d-search button:hover {
  filter: brightness(1.03);
}

.d-search button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Login-knapp */
.d-login-btn,
.m-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.d-login-btn:hover,
.m-login-btn:hover {
  background: var(--accent);
  color: #000;
  text-decoration: none;
}

.d-login-btn:focus-visible,
.m-login-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Handlekurv desktop */
.d-cart {
  width: 28px;
  height: 28px;
  display: block;
  background: url("../Img/shopping-cart.svg") no-repeat center / contain;
  filter: invert(1);
}

.d-cart:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Menyrad */
.d-menuRow {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.d-link {
  position: relative;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.2px;
  font-size: clamp(16px, 1.1vw + 0.5rem, 22px);
  padding: 6px 2px;
  white-space: nowrap;
}

.d-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.d-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 3px;
  background: transparent;
  transition: background 0.18s ease;
}

.d-link:hover::after,
.d-link[aria-expanded="true"]::after {
  background: var(--accent);
}

.d-itemProducts {
  position: relative;
}

/* Mega menu */
.d-mega {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: var(--desk-header-h);
  width: min(95vw, var(--container-w));
  background: linear-gradient(180deg, #0b0b0b 0%, #060606 100%);
  border: 4px solid var(--line);
  padding: 12px 0 26px;
  display: none;
  z-index: 950;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.d-megaInner {
  padding: 0 20px;
}

.d-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.d-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  padding: 14px 10px;
  border-radius: 14px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}

.d-cat:hover {
  transform: translateY(-2px);
  background: #0f0f0f;
  box-shadow: 0 0 0 1px #242424 inset;
  text-decoration: none;
}

.d-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.d-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.d-label {
  font-weight: 700;
  color: #cfcfcf;
  font-size: 20px;
  margin-top: auto;
  text-align: center;
}

/* =========================
   MOBIL HEADER
   ========================= */

.m-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 5px solid var(--accent);
}

.m-nav {
  max-width: var(--container-w);
  height: var(--mob-header-h);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-brand img {
  display: block;
  height: calc(var(--mob-header-h) - 40px);
  width: auto;
}

.m-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-login-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.m-cart {
  width: 28px;
  height: 28px;
  display: block;
  background: url("../Img/shopping-cart.svg") no-repeat center / contain;
  filter: invert(1);
}

.m-burger {
  background: transparent;
  border: 0;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.m-burger:focus-visible,
.m-cart:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Mobilskuff */
.m-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--mob-header-h);
  bottom: 0;
  background: var(--dark-surface);
  border-top: 3px solid var(--line);
  z-index: 900;
  overflow-y: auto;
  transform: translateY(8px);
  opacity: 0;
  transition: 0.18s ease;
}

.m-drawer.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.m-searchWrap {
  padding: 12px 16px;
}

.m-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.m-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #0e0e0e;
  color: #fff;
  padding: 0 14px;
  font-size: 18px;
  font-family: inherit;
}

.m-search input::placeholder {
  color: #9a9a9a;
}

.m-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.m-search button {
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  cursor: pointer;
}

.m-sectionTitle {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  margin: 6px 0 10px;
}

.m-catsWrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 10px;
}

.m-cat {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  text-decoration: none;
  margin: 6px 0;
}

.m-cat:hover {
  text-decoration: none;
  background: #151515;
}

.m-cat .m-icon {
  width: 50px;
  height: 50px;
  justify-self: center;
}

.m-cat .m-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.m-cat .m-label {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}

.m-links {
  width: 100%;
  max-width: 600px;
  margin: 6px auto 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px;
}

.m-link {
  display: block;
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  font-size: 20px;
  padding: 8px 4px;
}

.m-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* =========================
   RESPONSIV FINJUSTERING
   ========================= */

@media (max-width: 1200px) {
  .d-nav {
    padding: 0 16px;
  }

  .d-brand img {
    height: calc(var(--desk-header-h) - 28px);
  }

  .d-cats {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 520px) {
  .m-login-btn {
    padding: 0 10px;
    font-size: 13px;
  }

  .m-search input {
    font-size: 16px;
  }

  .m-sectionTitle {
    font-size: 24px;
  }

  .m-cat .m-label,
  .m-link {
    font-size: 18px;
  }
}

/* =========================
   AUTH / LOGIN PAGE
   Inspirert av ryddig butikk-login
   ========================= */

.auth-page {
  background: #f5f5f5;
  min-height: 100vh;
}

.auth-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 460px);
  justify-content: center;
  gap: 72px;
  align-items: start;
}

.auth-info {
  position: relative;
  padding-top: 40px;
}

.auth-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1c1c1c;
  text-transform: uppercase;
}

.auth-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  color: #111;
}

.auth-info p {
  margin: 0 0 28px;
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

.auth-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.auth-benefits li {
  position: relative;
  padding-left: 30px;
  color: #1f1f1f;
  font-size: 1rem;
  line-height: 1.5;
}

.auth-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid #1f1f1f;
  border-radius: 50%;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}

.auth-panel {
  display: grid;
  gap: 28px;
}

.auth-box {
  background: transparent;
  border: 0;
}

.auth-box h2 {
  margin: 0 0 22px;
  font-size: 2rem;
  line-height: 1.1;
  color: #111;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-size: 0.98rem;
  font-weight: 600;
  color: #222;
}

.auth-field input {
  width: 100%;
  height: 54px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  color: #111;
  padding: 0 16px;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input::placeholder {
  color: #8b8b8b;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.12);
}

.auth-vipps-btn,
.auth-primary-btn,
.auth-secondary-btn {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.auth-vipps-btn {
  background: #ff5b24;
  color: #fff;
  border: 1px solid #ff5b24;
}

.auth-vipps-btn:hover {
  background: #f04d16;
  border-color: #f04d16;
  text-decoration: none;
}

.auth-primary-btn {
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  cursor: pointer;
}

.auth-primary-btn:hover {
  filter: brightness(1.02);
}

.auth-secondary-btn {
  background: #fff;
  color: #111;
  border: 1px solid #cfcfcf;
}

.auth-secondary-btn:hover {
  border-color: #999;
  text-decoration: none;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 10px 0 2px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #d8d8d8;
  transform: translateY(-50%);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: #f5f5f5;
  color: #777;
  font-size: 0.95rem;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.auth-links a,
.auth-text-link {
  color: #2457d6;
  text-decoration: underline;
  font-size: 0.96rem;
}

.auth-text-link {
  display: inline-block;
  margin-top: 6px;
}

.auth-box--secondary {
  padding-top: 10px;
  border-top: 1px solid #d8d8d8;
}

@media (max-width: 980px) {
  .auth-wrap {
    padding: 36px 16px 64px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 620px;
    margin: 0 auto;
  }

  .auth-info {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .auth-box h2 {
    font-size: 1.75rem;
  }

  .auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   REGISTER PAGE
   ========================= */

.auth-layout--register {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(340px, 560px);
  gap: 64px;
  align-items: start;
  justify-content: center;
}

.auth-info h1 {
  margin: 0 0 18px;
  color: #111;
  line-height: 1.05;
  font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
}

.auth-info p {
  margin: 0 0 28px;
  color: #444;
  line-height: 1.7;
  font-size: 1.02rem;
}

.auth-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.auth-benefits li {
  position: relative;
  padding-left: 30px;
  color: #1f1f1f;
  font-size: 1rem;
  line-height: 1.5;
}

.auth-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid #1f1f1f;
  border-radius: 50%;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}

.auth-check {
  margin-top: 8px;
}

.auth-check__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #222;
  line-height: 1.5;
  font-size: 0.97rem;
  cursor: pointer;
}

.auth-check__label input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: #4338b5;
  border: 0;
  box-shadow: none;
  background: transparent;
}


.auth-check__label span {
  display: inline;
}

.auth-check__label a {
  color: #4338b5;
  text-decoration: underline;
  font-weight: 600;
}

.auth-check__label a:hover {
  text-decoration: none;
}

/* Adresse-autocomplete */
.address-search {
  position: relative;
}

.address-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.address-search__item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ececec;
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.address-search__item:last-child {
  border-bottom: 0;
}

.address-search__item:hover {
  background: #f7f7fb;
}

.address-search__line1 {
  color: #111;
  font-weight: 600;
}

.address-search__line2 {
  color: #666;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .auth-layout--register {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .auth-grid-2 {
    grid-template-columns: 1fr;
  }

  .auth-info h1 {
    font-size: 2.5rem;
  }
}

/* =========================
   REGISTER PAGE ADDITIONS
   ========================= */

.auth-grid-2--equal {
  grid-template-columns: 1fr 1fr;
}

.auth-help {
  min-height: 20px;
  font-size: 0.92rem;
  color: #666;
  margin-top: 4px;
}

.auth-help--inline {
  margin-top: 8px;
  min-height: 20px;
}

.auth-help--muted {
  color: #666;
}

.auth-help--success {
  color: #1f7a38;
}

.auth-help--error {
  color: #b42318;
}

.auth-check-stack {
  display: grid;
  gap: 10px;
}

.auth-status {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.auth-status strong {
  display: block;
  margin-bottom: 4px;
}

.auth-status p {
  margin: 0;
}

.auth-status--success {
  background: #edf9f0;
  border-color: #b7e2c1;
  color: #1f5f31;
}

.auth-status--error {
  background: #fff1f1;
  border-color: #f0b8b8;
  color: #8f1f1f;
}

.is-hidden {
  display: none !important;
}

.address-search {
  position: relative;
}

.address-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.address-search__item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ececec;
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: inherit;
}

.address-search__item:last-child {
  border-bottom: 0;
}

.address-search__item:hover {
  background: #f7f7fb;
}

.address-search__line1 {
  color: #111;
  font-weight: 600;
}

.address-search__line2 {
  color: #666
  font-size: 0.92rem;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 84px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 60px;
  height: 36px;
  border: 1px solid rgba(67, 56, 181, 0.18);
  background: rgba(67, 56, 181, 0.06);
  color: #4338b5;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.password-toggle:hover {
  background: rgba(67, 56, 181, 0.12);
  border-color: rgba(67, 56, 181, 0.28);
}

.password-toggle:focus-visible {
  outline: 2px solid #4338b5;
  outline-offset: 2px;
}

.auth-field-message {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  min-height: 1.3em;
}

.auth-field-message.is-error {
  color: #c62828;
}

.auth-field-message.is-success {
  color: #2e7d32;
}

/* =========================
   REGISTER TABS / BUSINESS
   ========================= */

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-tab {
  min-height: 52px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-tab:hover {
  border-color: #999;
}

.auth-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.auth-tab-panel {
  display: none;
  gap: 18px;
}

.auth-tab-panel.is-active {
  display: grid;
}

.auth-tab-panel h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.1;
  color: #111;
}

.auth-address-block {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.auth-address-block h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #111;
}

.auth-check--compact {
  margin-top: -2px;
}

.auth-grid-2--equal {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .auth-tabs,
  .auth-grid-2--equal {
    grid-template-columns: 1fr;
  }
}