/* Marè Deluxe Beauty — Auth pages (Framer-inspired layout, site palette) */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  background: var(--page-gradient);
  box-sizing: border-box;
}

.auth-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 18, 12, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.auth-back:hover {
  color: #fff;
  background: rgba(8, 18, 12, 0.5);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(74, 122, 82, 0.22);
  box-shadow: 0 20px 60px rgba(15, 36, 24, 0.22);
  box-sizing: border-box;
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand h1 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--green-deep);
  margin: 0 0 6px;
  font-weight: 400;
}

.auth-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #1a3324;
  text-decoration: none;
  background: #f0f5ee;
  border: 1px solid rgba(74, 122, 82, 0.2);
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.auth-google-btn:hover {
  background: #e4eddf;
  transform: translateY(-1px);
}

.auth-google-btn svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: rgba(26, 51, 36, 0.35);
  font-size: 12px;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(74, 122, 82, 0.25);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(26, 51, 36, 0.7);
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #1a3324;
  background: #f0f5ee;
  border: 1px solid rgba(74, 122, 82, 0.2);
  border-radius: 12px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  border-color: var(--green-sage);
  box-shadow: 0 0 0 3px rgba(74, 122, 82, 0.15);
}

.auth-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  color: rgba(26, 51, 36, 0.75);
  line-height: 1.45;
}

.auth-checkbox-row input {
  margin-top: 2px;
  accent-color: var(--green-rich);
}

.auth-checkbox-row a {
  color: var(--green-rich);
  font-weight: 600;
}

.auth-submit {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--green-rich), var(--green-deep));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

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

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

.auth-error {
  margin-top: 12px;
  font-size: 12px;
  color: #c0392b;
  text-align: center;
  line-height: 1.4;
}

.auth-success {
  margin-top: 12px;
  font-size: 12px;
  color: var(--green-rich);
  text-align: center;
  line-height: 1.4;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(26, 51, 36, 0.65);
}

.auth-switch a {
  color: var(--green-rich);
  font-weight: 700;
  text-decoration: none;
}

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

.auth-panel[hidden] {
  display: none !important;
}

.auth-logout-btn {
  width: 100%;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
  background: transparent;
  border: 1px solid rgba(74, 122, 82, 0.35);
  border-radius: 12px;
  cursor: pointer;
}

.auth-logout-btn:hover {
  background: #f0f5ee;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: rgba(26, 51, 36, 0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Account hub layout */
.account-page {
  justify-content: flex-start;
  padding: 56px 20px 48px;
  box-sizing: border-box;
}

.account-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

.account-sidebar {
  padding: 26px 22px 22px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(74, 122, 82, 0.18);
  box-shadow: 0 16px 48px rgba(15, 36, 24, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
}

.account-sidebar-brand {
  flex: 0 0 auto;
  margin-bottom: 22px;
}

.account-sidebar-brand h1 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--green-deep);
  margin: 0 0 12px;
  font-weight: 400;
}

.account-sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 51, 36, 0.45);
  margin: 0 0 6px;
}

.account-sidebar-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a3324;
  margin: 0 0 4px;
  line-height: 1.35;
}

.account-sidebar-email {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
  word-break: break-word;
}

.account-role-badge {
  display: inline-block;
  margin: 12px 0 0;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: #f4f6f4;
  color: rgba(26, 51, 36, 0.55);
  border: 1px solid rgba(74, 122, 82, 0.12);
}

.account-role-badge.is-customer {
  background: #ffffff;
  color: var(--green-deep);
  border-color: rgba(74, 122, 82, 0.28);
}

/* premium.css styles every <nav> as the site header — reset for account sidebar */
.account-page .account-sidebar .account-nav {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.account-page .account-nav-btn {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
  text-align: left;
  color: #1a3324;
  background: #ffffff;
  border: 1px solid rgba(26, 51, 36, 0.14);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.account-page .account-nav-btn::before,
.account-page .account-nav-btn::after {
  content: none !important;
  display: none !important;
}

.account-page .account-nav-btn:hover:not(.active) {
  background: #f4f5f4;
  border-color: rgba(26, 51, 36, 0.22);
  color: #1a3324;
}

.account-page .account-nav-btn.active {
  background: linear-gradient(145deg, var(--green-rich), var(--green-deep));
  color: #ffffff;
  border-color: transparent;
}

.account-page .account-nav-btn[hidden] {
  display: none !important;
}

.account-sidebar-footer {
  flex: 0 0 auto;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(26, 51, 36, 0.1);
  position: relative;
  z-index: 2;
  background: #ffffff;
}

.account-page .account-sidebar-logout {
  margin-top: 0;
  width: 100%;
  min-height: 52px;
  padding: 15px 18px;
  font-size: 14px;
  box-sizing: border-box;
  border-radius: 12px;
  display: block;
}

.account-main {
  padding: 26px 24px 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(74, 122, 82, 0.22);
  box-shadow: 0 12px 40px rgba(15, 36, 24, 0.1);
  min-height: 400px;
  box-sizing: border-box;
}

.account-panel[hidden] {
  display: none !important;
}

.account-panel-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--green-deep);
  margin: 0 0 8px;
  line-height: 1.2;
}

.account-lead {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.55;
  max-width: 36rem;
}

.account-greeting {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: #1a3324;
  margin: 0 0 6px;
  line-height: 1.35;
}

.account-email {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.45;
}

.account-hint {
  font-size: 13px;
  color: rgba(26, 51, 36, 0.55);
  margin: 0;
  line-height: 1.55;
  max-width: 40rem;
}

.account-section-title,
.account-card-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 51, 36, 0.55);
  margin: 0 0 8px;
}

.account-card-text {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.55;
}

.account-redeem-card {
  padding: 16px 18px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: #f0f5ee;
  border: 1px solid rgba(74, 122, 82, 0.18);
}

.account-redeem-form {
  margin: 0;
}

.account-redeem-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(26, 51, 36, 0.7);
  margin-bottom: 8px;
}

.account-redeem-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.account-redeem-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid rgba(74, 122, 82, 0.25);
  background: #fff;
  color: #1a3324;
  box-sizing: border-box;
}

.account-redeem-row input:focus {
  outline: none;
  border-color: var(--green-sage);
  box-shadow: 0 0 0 3px rgba(74, 122, 82, 0.12);
}

.account-redeem-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  background: linear-gradient(135deg, var(--green-rich), var(--green-deep));
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.account-redeem-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

.account-redeem-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.account-inline-msg {
  margin: 10px 0 0;
  text-align: left;
}

  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.account-orders-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-order-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0f5ee;
  border: 1px solid rgba(74, 122, 82, 0.15);
}

.account-order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}

.account-order-id {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-deep);
}

.account-order-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-rich);
}

.account-order-summary {
  font-size: 14px;
  margin: 0;
  color: rgba(26, 51, 36, 0.78);
  line-height: 1.45;
}

.account-order-track {
  font-size: 12px;
  margin: 8px 0 0;
  color: var(--text-muted);
}

.account-track-field {
  margin-bottom: 14px;
}

.account-select {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid rgba(74, 122, 82, 0.22);
  background: #f0f5ee;
  color: #1a3324;
  box-sizing: border-box;
}

.account-track-link {
  margin-top: 12px;
}

.account-track-link a {
  color: var(--green-rich);
  font-weight: 600;
}

.tracking-wrap {
  margin-top: 10px;
}

.account-tracking-meta {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 6px;
  line-height: 1.4;
}

.account-tracking-number {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.45;
}

.account-tracking-number strong {
  color: #1a3324;
  font-weight: 600;
}

.tracking-widget-host {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(74, 122, 82, 0.18);
  background: #fff;
  padding: 12px;
  min-height: 140px;
  margin-top: 8px;
}

.tracking-widget-mount {
  margin-top: 4px;
}

.tracking-widget-host instantparcels-tracker {
  display: block;
  width: 100%;
}

/* Instant Parcels free widget includes "Powered by" — required by their terms; keep visible */
.tracking-widget-host instantparcels-tracker a {
  font-size: 12px;
}

@media (max-width: 720px) {
  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .account-nav {
    flex-direction: column;
  }

  .account-page .account-nav-btn {
    text-align: left;
    min-width: 0;
  }

  .account-redeem-row {
    flex-direction: column;
  }

  .account-redeem-btn {
    width: 100%;
  }
}
