body.auth-page {
  --auth-bg: #f6f2e9;
  --auth-surface: #ffffff;
  --auth-text: #0f2432;
  --auth-muted: #516776;
  --auth-border: #e4ddd1;
  --auth-primary: #e4466f;
  --auth-primary-2: #cf2f59;
  --auth-focus: rgba(228, 70, 111, 0.2);
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  margin: 0;
}

body.auth-page *,
body.auth-page *::before,
body.auth-page *::after {
  box-sizing: border-box;
}

/* Header typography parity with Hakkimizda page */
body.auth-page .top-news-left,
body.auth-page .contact-links a,
body.auth-page .main-nav > a,
body.auth-page .main-nav > .mega-nav-item > .mega-trigger {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

body.auth-page .top-news-right a,
body.auth-page .btn-login,
body.auth-page .btn-auth-register,
body.auth-page .btn-auth-logout {
  font-family: "Poppins", "Open Sans", sans-serif;
  font-weight: 500;
}

/* Keep header action buttons dimensionally identical to shared pages */
body.auth-page .btn-cart {
  min-height: 48px;
  min-width: 72px;
  padding: 12px 24px;
}

body.auth-page .btn-login {
  min-height: 48px;
  padding: 12px 24px;
}

body.auth-page .btn-auth-register,
body.auth-page .btn-auth-logout {
  min-height: 48px;
  padding: 12px 18px;
}

body.auth-page .main-nav > a.active,
body.auth-page .main-nav > a.is-active,
body.auth-page .main-nav > a.is-semibold,
body.auth-page .main-nav > .mega-nav-item > .mega-trigger.active,
body.auth-page .main-nav > .mega-nav-item > .mega-trigger.is-active,
body.auth-page .main-nav > .mega-nav-item > .mega-trigger.is-semibold {
  border-bottom: 1px solid var(--auth-primary);
  color: var(--auth-primary);
  font-weight: 600;
}

body.auth-page .site-wrapper {
  background:
    radial-gradient(circle at 8% 22%, rgba(241, 193, 90, 0.22), transparent 36%),
    radial-gradient(circle at 88% 14%, rgba(231, 95, 126, 0.2), transparent 30%),
    linear-gradient(180deg, #fbf8f3 0%, #f5efe5 100%);
  min-height: 100vh;
}

.auth-main {
  overflow: hidden;
  position: relative;
}

.auth-main::before {
  background: radial-gradient(circle, rgba(239, 199, 107, 0.28), transparent 62%);
  content: "";
  height: 420px;
  left: -140px;
  pointer-events: none;
  position: absolute;
  top: 40px;
  width: 420px;
  z-index: 0;
}

.auth-section {
  padding: 56px 0 26px;
  position: relative;
  z-index: 1;
}

.auth-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  margin: 0 auto;
  width: min(1200px, calc(100vw - 40px));
}

.auth-intro {
  background: linear-gradient(145deg, #fff7dc 0%, #ffe2cf 38%, #ffd8d4 100%);
  border: 1px solid #efd8ba;
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  padding: 36px;
}

.auth-badge {
  align-items: center;
  background: #f3c148;
  border-radius: 999px;
  color: #28220d;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 20px;
  margin-bottom: 16px;
  padding: 7px 14px;
}

.auth-intro h1 {
  color: #132b38;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 600px;
}

.auth-intro p {
  color: #284553;
  font-size: 18px;
  line-height: 30px;
  margin: 0;
  max-width: 540px;
}

.auth-benefits {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.auth-benefits li {
  color: #1f3c4a;
  font-size: 15px;
  line-height: 24px;
  padding-left: 22px;
  position: relative;
}

.auth-benefits li::before {
  color: #de3f68;
  content: "•";
  font-size: 20px;
  left: 6px;
  line-height: 1;
  position: absolute;
  top: 3px;
}

.auth-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.auth-stat-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(219, 195, 154, 0.7);
  border-radius: 14px;
  min-height: 84px;
  padding: 12px 12px 10px;
}

.auth-stat-item strong {
  color: #122936;
  display: block;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.auth-stat-item span {
  color: #325261;
  display: block;
  font-size: 13px;
  line-height: 18px;
  margin-top: 3px;
}

.auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(15, 40, 58, 0.1);
  padding: 30px;
}

.auth-card-head {
  margin-bottom: 16px;
}

.auth-card h2 {
  color: #102631;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 8px;
}

.auth-card-head p {
  color: #4a6472;
  font-size: 15px;
  line-height: 24px;
  margin: 0;
}

.front-auth-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field label {
  color: #1a3542;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.auth-field input {
  appearance: none;
  background: #fff;
  border: 1px solid #d4dde4;
  border-radius: 12px;
  color: #132a37;
  font-size: 15px;
  line-height: 22px;
  min-height: 50px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-field input::placeholder {
  color: #8ca0ac;
}

.auth-field input:focus-visible {
  background: #fff;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px var(--auth-focus);
  outline: none;
}

.auth-inline-links {
  align-items: center;
  color: #5a7280;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  line-height: 20px;
  margin: 2px 2px 0;
}

.auth-link-muted {
  color: #244759;
  font-weight: 700;
  text-decoration: none;
}

.auth-link-muted:hover {
  text-decoration: underline;
}

.auth-note {
  color: #627887;
  font-size: 13px;
  line-height: 20px;
  margin: 2px 0;
}

.auth-consent {
  align-items: flex-start;
  color: #304b59;
  display: flex;
  gap: 10px;
  line-height: 20px;
  margin-top: 2px;
}

.auth-consent input[type="checkbox"] {
  accent-color: var(--auth-primary);
  flex: 0 0 16px;
  height: 16px;
  margin-top: 2px;
  width: 16px;
}

.auth-consent span {
  font-size: 13px;
}

.auth-submit,
.auth-google-btn {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  line-height: 22px;
  min-height: 50px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.auth-secondary-action {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0e6;
  border-radius: 12px;
  color: #173645;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  line-height: 20px;
  min-height: 46px;
  padding: 0 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.auth-secondary-action:hover {
  background: #f9fbfd;
  border-color: #c7d3dc;
}

.auth-secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.78;
  transform: none;
}

.auth-submit {
  background: linear-gradient(86deg, var(--auth-primary) 0%, #ee597f 100%);
  border: 0;
  box-shadow: 0 12px 20px rgba(211, 58, 96, 0.25);
  color: #fff;
  cursor: pointer;
  margin-top: 4px;
}

.auth-submit:hover {
  transform: translateY(-1px);
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.78;
  transform: none;
}

.auth-divider {
  align-items: center;
  color: #738795;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 12px;
  line-height: 16px;
  margin: 14px 0;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: #e5e9ed;
  content: "";
  flex: 1 1 auto;
  height: 1px;
}

.auth-google-btn {
  background: #fff;
  border: 1px solid #d8e0e6;
  color: #173645;
}

.auth-google-btn:hover {
  background: #f9fbfd;
  border-color: #c7d3dc;
}

.auth-google-icon {
  align-items: center;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.auth-message {
  border-radius: 12px;
  display: none;
  font-size: 14px;
  line-height: 20px;
  margin: 10px 0 0;
  padding: 10px 12px;
}

.auth-message.is-success {
  background: #eef9f2;
  color: #1d7a46;
  display: block;
}

.auth-message.is-error {
  background: #fff1f4;
  color: #c33659;
  display: block;
}

.auth-links {
  color: #4b6470;
  font-size: 14px;
  line-height: 20px;
  margin: 14px 0 0;
}

.auth-links-tight {
  margin-top: 12px;
}

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

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

body.auth-page-form-only .auth-main::before {
  display: none;
}

body.auth-page-form-only .auth-section {
  padding: 44px 0 30px;
}

body.auth-page-form-only .auth-grid-form-only {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  margin: 0 auto;
  width: min(1200px, calc(100vw - 40px));
}

body.auth-page-form-only .auth-grid-form-only .auth-card {
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1100px) {
  .auth-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-main::before {
    display: none;
  }
}

@media (max-width: 780px) {
  .auth-section {
    padding-top: 32px;
  }

  .auth-grid {
    gap: 18px;
    width: min(1200px, calc(100vw - 22px));
  }

  .auth-intro,
  .auth-card {
    border-radius: 20px;
    padding: 22px;
  }

  .auth-intro h1 {
    font-size: clamp(29px, 8.7vw, 38px);
  }

  .auth-intro p {
    font-size: 16px;
    line-height: 27px;
  }

  .auth-stats {
    grid-template-columns: 1fr;
  }

  .auth-card h2 {
    font-size: 29px;
  }

  body.auth-page-form-only .auth-grid-form-only {
    width: min(1200px, calc(100vw - 22px));
  }
}
