html, body {
    margin: 0;
    padding: 0;
    background: #fbf7f1;
}

body.astro-auth-standalone {
    background:
        radial-gradient(circle at top right, rgba(255, 214, 153, 0.18), transparent 24%),
        linear-gradient(180deg, #fffdfa 0%, #fff7ef 100%);
    color: #111827;
    overflow-x: hidden;
}

.astro-auth-shell * {
    box-sizing: border-box;
}

.astro-auth-shell {
    min-height: 100vh;
    padding: 20px 0;
}

.astro-auth-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.astro-auth-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 18px;
    align-items: stretch;
}

.astro-auth-panel {
    background: rgba(255,255,255,0.9);
    border: 1px solid #efdcca;
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.astro-auth-intro {
    background: radial-gradient(circle at top left, #fff0da 0%, #ffffff 58%);
}

.astro-auth-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a3412;
    margin-bottom: 10px;
}

.astro-auth-intro h1,
.astro-auth-form-head h2 {
    margin: 0 0 10px;
    color: #111827;
    line-height: 1.12;
}

.astro-auth-intro h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 620px;
}

.astro-auth-form-head h2 {
    font-size: 28px;
    font-weight: 700;
}

.astro-auth-intro p,
.astro-auth-form-head p,
.astro-auth-point span,
.astro-auth-fallback {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: #6b7280;
}

.astro-auth-points {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.astro-auth-point {
    background: #fff8f0;
    border: 1px solid #f4dfcb;
    border-radius: 18px;
    padding: 14px;
}

.astro-auth-point strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    color: #111827;
}

.astro-auth-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.astro-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.astro-auth-link-primary {
    background: #111827;
    color: #fff;
}

.astro-auth-link-secondary {
    background: #f3f4f6;
    color: #111827;
}

.astro-auth-chip {
    display: inline-block;
    background: #fff3e0;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.astro-auth-form-wrap {
    margin-top: 18px;
}

/* WooCommerce form styling */
.astro-auth-form-panel .woocommerce {
    width: 100%;
}

.astro-auth-form-panel .woocommerce h2,
.astro-auth-form-panel .woocommerce h3 {
    font-size: 22px;
    color: #111827;
    margin-bottom: 12px;
}

.astro-auth-form-panel .woocommerce form {
    margin: 0;
    background: #fffaf4;
    border: 1px solid #f0dfd2;
    border-radius: 20px;
    padding: 18px;
}

.astro-auth-form-panel .woocommerce form.login,
.astro-auth-form-panel .woocommerce form.register {
    min-height: auto;
}

.astro-auth-form-panel .woocommerce form p {
    margin-bottom: 14px;
}

.astro-auth-form-panel .woocommerce label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.astro-auth-form-panel .woocommerce input[type="text"],
.astro-auth-form-panel .woocommerce input[type="email"],
.astro-auth-form-panel .woocommerce input[type="password"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e7d7c6;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    box-shadow: none;
}

.astro-auth-form-panel .woocommerce .button,
.astro-auth-form-panel .woocommerce button.button,
.astro-auth-form-panel .woocommerce input.button {
    min-height: 44px;
    border-radius: 12px;
    background: #111827 !important;
    color: #fff !important;
    border: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.astro-auth-form-panel .woocommerce .lost_password a {
    color: #9a3412;
    text-decoration: none;
}

.astro-auth-form-panel .woocommerce-MyAccount-navigation {
    display: none;
}

.astro-auth-form-panel .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
}

.astro-auth-form-panel .woocommerce-notices-wrapper:empty {
    display: none;
}

.astro-auth-fallback {
    background: #fff8f0;
    border: 1px solid #f4dfcb;
    border-radius: 16px;
    padding: 16px;
}

@media (max-width: 1024px) {
    .astro-auth-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .astro-auth-shell {
        padding: 12px 0 18px;
    }

    .astro-auth-wrap {
        padding: 0 12px;
    }

    .astro-auth-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .astro-auth-intro h1 {
        font-size: 26px;
    }

    .astro-auth-form-head h2 {
        font-size: 22px;
    }

    .astro-auth-intro p,
    .astro-auth-form-head p,
    .astro-auth-point span,
    .astro-auth-fallback {
        font-size: 14px;
        line-height: 1.65;
    }

    .astro-auth-links {
        flex-direction: column;
        align-items: stretch;
    }

    .astro-auth-link {
        width: 100%;
    }

    .astro-auth-form-panel .woocommerce form {
        padding: 14px;
        border-radius: 16px;
    }
}

.astro-auth-loggedin {
    background: #fff8f0;
    border: 1px solid #f4dfcb;
    border-radius: 20px;
    padding: 20px;
}

.astro-auth-loggedin h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #111827;
}

.astro-auth-loggedin p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
}

/* Premium auth form polish */
.astro-auth-form-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 220, 170, 0.14), transparent 26%),
        linear-gradient(180deg, #fffdfa 0%, #fffaf5 100%);
}

.astro-auth-form-head p {
    color: #6b7280 !important;
    max-width: 520px;
}

.astro-auth-form-panel .woocommerce form {
    background: linear-gradient(180deg, #fff8f0 0%, #fffdf9 100%) !important;
    border: 1px solid #efdcca !important;
    border-radius: 22px !important;
    padding: 22px !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.astro-auth-form-panel .woocommerce label {
    color: #7c2d12 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    margin-bottom: 7px !important;
}

.astro-auth-form-panel .woocommerce input[type="text"],
.astro-auth-form-panel .woocommerce input[type="email"],
.astro-auth-form-panel .woocommerce input[type="password"] {
    width: 100% !important;
    min-height: 48px !important;
    border: 1px solid #e6d6c5 !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    color: #111827 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.astro-auth-form-panel .woocommerce input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.astro-auth-form-panel .woocommerce input:focus {
    border-color: #d97706 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.10) !important;
}

.astro-auth-form-panel .woocommerce .button,
.astro-auth-form-panel .woocommerce button.button,
.astro-auth-form-panel .woocommerce input.button {
    min-height: 46px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #111827, #1f2937) !important;
    color: #ffffff !important;
    border: 0 !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12) !important;
}

.astro-auth-form-panel .woocommerce .button:hover,
.astro-auth-form-panel .woocommerce button.button:hover,
.astro-auth-form-panel .woocommerce input.button:hover {
    opacity: 0.96;
    transform: translateY(-1px);
}

.astro-auth-form-panel .woocommerce .form-row {
    margin-bottom: 14px !important;
}

.astro-auth-form-panel .woocommerce .show-password-input,
.astro-auth-form-panel .woocommerce .password-input {
    width: 100%;
}

.astro-auth-form-panel .woocommerce .password-input input {
    padding-right: 42px !important;
}

.astro-auth-form-panel .woocommerce .show-password-input::after {
    color: #9a3412 !important;
}

.astro-auth-form-panel .woocommerce .lost_password {
    margin-top: 10px !important;
}

.astro-auth-form-panel .woocommerce .lost_password a {
    color: #9a3412 !important;
    font-weight: 600;
}

.astro-auth-form-panel .woocommerce .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #4b5563 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.astro-auth-form-panel .woocommerce .woocommerce-form-login__rememberme input {
    width: 16px !important;
    height: 16px !important;
    min-height: auto !important;
}

.astro-auth-form-panel .woocommerce h2,
.astro-auth-form-panel .woocommerce h3 {
    font-size: 20px !important;
    margin-bottom: 14px !important;
    color: #111827 !important;
}

/* Logged-in state polish */
.astro-auth-loggedin {
    background: linear-gradient(180deg, #fff8f0 0%, #fffdf9 100%);
    border: 1px solid #efdcca;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.astro-auth-loggedin h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #111827;
}

.astro-auth-loggedin p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
}

@media (max-width: 768px) {
    .astro-auth-form-panel .woocommerce form {
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .astro-auth-loggedin {
        padding: 18px;
        border-radius: 18px;
    }

    .astro-auth-loggedin h3 {
        font-size: 20px;
    }
}

/* Mobile auth page priority fix */
@media (max-width: 768px) {
  .astro-auth-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .astro-auth-form-panel {
    order: 1 !important;
  }

  .astro-auth-intro {
    order: 2 !important;
  }

  .astro-auth-form-head {
    margin-bottom: 12px !important;
  }

  .astro-auth-form-head h2 {
    font-size: 24px !important;
    line-height: 1.15 !important;
    margin-bottom: 8px !important;
  }

  .astro-auth-form-head p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #6b7280 !important;
  }

  .astro-auth-form-panel .woocommerce h2,
  .astro-auth-form-panel .woocommerce h3 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  .astro-auth-form-panel .woocommerce form {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .astro-auth-form-panel .woocommerce label {
    color: #7c2d12 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .astro-auth-form-panel .woocommerce .required {
    color: #b91c1c !important;
    opacity: 1 !important;
  }

  .astro-auth-form-panel .woocommerce input[type="text"],
  .astro-auth-form-panel .woocommerce input[type="email"],
  .astro-auth-form-panel .woocommerce input[type="password"] {
    min-height: 46px !important;
    font-size: 14px !important;
    color: #111827 !important;
    background: #ffffff !important;
    border: 1px solid #decfbe !important;
  }

  .astro-auth-form-panel .woocommerce input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
  }

  .astro-auth-form-panel .woocommerce .password-input {
    position: relative !important;
  }

  .astro-auth-form-panel .woocommerce .show-password-input {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    color: #9a3412 !important;
  }

  .astro-auth-form-panel .woocommerce .show-password-input::after {
    color: #9a3412 !important;
    font-size: 16px !important;
  }

  .astro-auth-form-panel .woocommerce .woocommerce-form-login__rememberme {
    color: #4b5563 !important;
    font-size: 13px !important;
    opacity: 1 !important;
  }

  .astro-auth-form-panel .woocommerce .woocommerce-form-login__rememberme input {
    accent-color: #9a3412;
  }

  .astro-auth-intro h1 {
    font-size: 24px !important;
    line-height: 1.15 !important;
  }

  .astro-auth-intro p {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .astro-auth-point {
    padding: 14px !important;
  }

  .astro-auth-point strong {
    font-size: 16px !important;
  }

  .astro-auth-point span {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
}

/* Force-fix auth form visibility and mobile order */
.astro-auth-form-panel .woocommerce form label,
.astro-auth-form-panel .woocommerce form p label,
.astro-auth-form-panel .woocommerce .form-row label {
  color: #7c2d12 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.astro-auth-form-panel .woocommerce .required {
  color: #b91c1c !important;
  opacity: 1 !important;
}

.astro-auth-form-panel .woocommerce .password-input,
.astro-auth-form-panel .woocommerce-form-login .password-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.astro-auth-form-panel .woocommerce .password-input input,
.astro-auth-form-panel .woocommerce-form-login .password-input input {
  padding-right: 44px !important;
  background: #ffffff !important;
  color: #111827 !important;
}

.astro-auth-form-panel .woocommerce .show-password-input,
.astro-auth-form-panel .woocommerce-form-login .show-password-input {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #9a3412 !important;
}

.astro-auth-form-panel .woocommerce .show-password-input::after,
.astro-auth-form-panel .woocommerce-form-login .show-password-input::after {
  color: #9a3412 !important;
  font-size: 16px !important;
}

.astro-auth-form-panel .woocommerce .woocommerce-form-login__rememberme,
.astro-auth-form-panel .woocommerce-form-login .woocommerce-form-login__rememberme {
  color: #4b5563 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  .astro-auth-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .astro-auth-form-panel {
    order: 1 !important;
  }

  .astro-auth-intro {
    order: 2 !important;
  }
}
