/* Auth pages — Norco brand, centered, responsive */
:root {
  --primary: #0C5A38;
  --primary-dark: #094530;
  --accent: #FFDE00;
  --dark: #1a1a1a;
  --gray: #666;
  --auth-shell-max: 420px;
  --auth-radius-pill: 999px;
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--dark);
  font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(248, 250, 249, 0.92) 0%, rgba(238, 243, 240, 0.96) 100%),
    url('/wp-content/uploads/2026/03/banner-1200x800-1.webp') center / cover no-repeat;
  background-color: #f0f4f2;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px 40px;
  box-sizing: border-box;
}

.auth-center {
  width: 100%;
  max-width: var(--auth-shell-max);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-center--wide {
  max-width: 460px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 28px;
  text-decoration: none;
  color: inherit;
}

.auth-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.auth-brand-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.auth-panel {
  width: 100%;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.auth-field {
  width: 100%;
  min-width: 0;
}

.auth-input-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--auth-radius-pill);
  min-height: 52px;
  padding: 0 6px 0 16px;
  box-shadow: 0 2px 12px rgba(12, 90, 56, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 90, 56, 0.12);
}

.auth-field-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-field-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.auth-input-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  height: 48px;
  padding: 0 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--dark);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.auth-input-row input::placeholder {
  color: #94a3b8;
}

.auth-toggle-pwd {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}

.auth-toggle-pwd:hover {
  color: var(--primary);
}

.auth-toggle-pwd svg {
  width: 20px;
  height: 20px;
}

.auth-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin: 8px 0 2px;
  padding-left: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-agreement {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray);
  text-align: center;
  margin: 6px 0 4px;
  padding: 0 8px;
}

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

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

.auth-submit {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: none;
  border-radius: var(--auth-radius-pill);
  background: var(--accent);
  color: var(--dark);
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 222, 0, 0.35);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.auth-submit:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--gray);
}

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

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

.auth-back-top {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--auth-radius-pill);
  background: #fff;
  border: 1px solid rgba(12, 90, 56, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-back-top:hover {
  border-color: var(--primary);
  background: #f5faf7;
}

.auth-page .norco-auth-notices {
  width: 100%;
  margin-bottom: 14px;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

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

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

@media (min-width: 768px) {
  .auth-shell {
    padding: 48px 24px;
  }

  .auth-brand {
    margin-bottom: 32px;
  }

  .auth-brand img {
    width: 56px;
    height: 56px;
  }

  .auth-brand-name {
    font-size: 26px;
  }

  .auth-center--wide {
    max-width: 480px;
  }

  .auth-form {
    gap: 16px;
  }

  .auth-input-row {
    min-height: 54px;
  }

  .auth-submit {
    height: 54px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .auth-row-2 {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    padding: 56px 16px 32px;
  }
}

.auth-shell--register {
  justify-content: flex-start;
  padding-top: 64px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .auth-shell--register {
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
