/* ==========================================================================
   Page: My Account — Auth card & account pages
   Loaded only on is_account_page() when FOODIE_REDESIGN is active.
   ========================================================================== */

/* Neutralize legacy white-card wrapper from style.css */
.woocommerce-account.loggedout-product-class {
  background: none;
}
.woocommerce-account.loggedout-product-class .page.content {
  max-width: none;
  background: none;
  box-shadow: none;
  padding: 0 !important;
  overflow: visible;
  margin: 0;
}
.woocommerce-account .content {
  padding: 0;
}

/* ---------- Auth page (login / register) ---------- */

.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0 0 24px;
}

/* Form rows */
.auth-card .form-row {
  margin-bottom: 16px;
}

.auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 6px;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
}

/* Primary button — full width inside card */
.auth-card .btn-primary {
  width: 100%;
  margin-top: 8px;
}

/* Terms & conditions text */
.auth-terms {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.auth-terms a {
  color: var(--text-gray);
  text-decoration: underline;
}

/* Lost password link */
.auth-card .lost_password {
  margin: 0;
}

.auth-card .lost_password a {
  font-size: 13px;
  color: var(--orange);
}

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

/* Error / messages area */
.auth-card .wc-checkout-flow-messages:empty {
  display: none;
}

.auth-card .woocommerce-error {
  background: #fff0f0;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #c0392b;
  font-size: 14px;
  list-style: none;
}

.auth-card .password-error-container {
  color: #c0392b;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 8px;
}

/* Lost password message (template injected by plugin) */
.auth-card .lost-email-message {
  display: block;
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 12px;
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  .auth-page {
    padding: 24px 16px;
    min-height: 50vh;
  }
}
