:root {
  --cream: #f5f0e6;
  --cream-dark: #e9dfcd;
  --white: #ffffff;
  --ink: #27251f;
  --muted: #746e64;
  --gold: #a47a2a;
  --gold-dark: #7d5b1d;
  --green: #1f6c4e;
  --border: rgba(39, 37, 31, 0.12);
  --shadow: 0 24px 65px rgba(54, 42, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, #fffaf1 0, transparent 34%),
    var(--cream);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.page {
  min-height: 100vh;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.presentation-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 110px);
  color: var(--white);
  background:
    linear-gradient(rgba(26, 30, 24, 0.82), rgba(26, 30, 24, 0.9)),
    linear-gradient(135deg, #4c5142, #171c17);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.presentation-panel::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -240px;
  bottom: -250px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.018);
}

.brand-mark {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e6c477;
  font-family: Georgia, serif;
  font-size: 25px;
  letter-spacing: 2px;
}

.brand-mark.small {
  width: 50px;
  height: 50px;
  color: var(--gold);
  border-color: rgba(164, 122, 42, 0.38);
  font-size: 18px;
}

.eyebrow {
  margin: 30px 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.presentation-panel h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 400;
  line-height: 0.98;
}

.presentation-panel h1 span {
  display: block;
  color: #d4ad5c;
  font-style: italic;
}

.presentation-text {
  max-width: 590px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.7;
}

.features {
  max-width: 670px;
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.feature span {
  color: #d4ad5c;
  font-size: 12px;
  letter-spacing: 2px;
}

.feature p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.login-panel {
  padding: 40px;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 475px);
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.login-card .eyebrow {
  margin-top: 0;
}

.login-card h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
}

.login-description {
  margin: 15px 0 32px;
  color: var(--muted);
  line-height: 1.65;
}

label {
  display: block;
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(164, 122, 42, 0.12);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 88px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 13px;
  padding: 6px;
  border: 0;
  color: var(--gold-dark);
  background: transparent;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.primary-button {
  width: 100%;
  margin-top: 26px;
  border: 1px solid var(--gold);
  color: var(--white);
  background: var(--gold);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.secondary-button {
  padding: 0 20px;
  border: 1px solid var(--border);
  color: var(--ink);
  background: var(--white);
}

.message {
  margin: 15px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.message.error {
  color: #8f2424;
  background: #fff0f0;
  border: 1px solid #f2c9c9;
}

.support-text {
  margin: 30px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.loading-view {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 15px;
  color: var(--muted);
}

.loader {
  width: 42px;
  height: 42px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.private-view {
  min-height: 100vh;
}

.private-header {
  min-height: 82px;
  padding: 15px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-brand p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.header-brand strong {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.dashboard {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 55px 0 80px;
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 24px;
}

.welcome-card,
.account-card,
.catalog-placeholder {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 45px rgba(54, 42, 25, 0.08);
}

.welcome-card {
  min-height: 260px;
  padding: clamp(35px, 6vw, 70px);
  background:
    linear-gradient(115deg, rgba(32, 38, 31, 0.96), rgba(40, 47, 37, 0.88)),
    #263025;
  color: var(--white);
}

.welcome-card .eyebrow {
  margin-top: 0;
}

.welcome-card h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 400;
}

.welcome-card p:last-child {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.account-card {
  padding: 32px;
}

.account-card h2,
.catalog-placeholder h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.account-card dl {
  margin: 25px 0 0;
}

.account-card dl div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.account-card dl div:last-child {
  border-bottom: 0;
}

.account-card dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.account-card dd {
  margin: 6px 0 0;
  word-break: break-word;
}

.catalog-placeholder {
  grid-column: 1 / -1;
  padding: clamp(30px, 5vw, 55px);
}

.catalog-placeholder .eyebrow {
  margin-top: 0;
}

.catalog-placeholder > div:first-child p:last-child {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.65;
}

.placeholder-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.placeholder-grid article {
  min-height: 230px;
  border-radius: 17px;
  background:
    linear-gradient(
      110deg,
      #eee6d8 8%,
      #f7f3eb 18%,
      #eee6d8 33%
    );
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

@media (max-width: 960px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .presentation-panel {
    min-height: 570px;
  }

  .login-panel {
    padding: 55px 20px;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .catalog-placeholder {
    grid-column: auto;
  }
}

@media (max-width: 650px) {
  .presentation-panel {
    min-height: auto;
    padding: 55px 25px;
  }

  .features,
  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .login-panel {
    padding: 25px 14px;
  }

  .login-card {
    padding: 30px 22px;
  }

  .private-header {
    align-items: flex-start;
    gap: 15px;
  }

  .header-brand strong {
    font-size: 17px;
  }

  .secondary-button {
    min-height: 42px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .dashboard {
    width: min(100% - 24px, 1180px);
    padding-top: 25px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

@media (max-width: 650px) {
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.client-catalog {
  grid-column: 1 / -1;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 45px rgba(54, 42, 25, 0.08);
}

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.catalog-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
}

.catalog-heading > div:first-child > p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.catalog-controls {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 10px;
}

.catalog-controls input,
.catalog-controls select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.catalog-controls input:focus,
.catalog-controls select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(164, 122, 42, 0.11);
}

.catalog-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.catalog-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fffdf9;
  display: flex;
  flex-direction: column;
}

.catalog-card.featured {
  border-color: rgba(164, 122, 42, 0.45);
  box-shadow: 0 16px 36px rgba(164, 122, 42, 0.12);
}

.catalog-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 18px;
  background: #fff;
  display: grid;
  place-items: center;
}

.catalog-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  color: var(--gold);
  background:
    linear-gradient(135deg, #f3ecdf, #fffdf8);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 38px;
}

.featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.catalog-card-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.catalog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--cream);
  font-size: 10px;
}

.catalog-card h3 {
  margin: 15px 0 0;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.catalog-sku {
  margin: 7px 0 0;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.catalog-description {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.catalog-card-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.catalog-price {
  display: block;
  color: var(--gold-dark);
  font-family: Georgia, serif;
  font-size: 25px;
}

.catalog-price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.catalog-hidden-price {
  color: var(--muted);
  font-size: 13px;
}

.catalog-sheet-link {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.catalog-message {
  margin-top: 30px;
  padding: 35px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1050px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-controls {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .catalog-grid,
  .catalog-controls {
    grid-template-columns: 1fr;
  }

  .catalog-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-sheet-link {
    width: 100%;
  }
}

.catalog-card {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(164, 122, 42, 0.35);
  box-shadow: 0 18px 40px rgba(54, 42, 25, 0.12);
}

.catalog-card-open {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--gold-dark);
  background: transparent;
  font-weight: 700;
}

.selection-header-button {
  gap: 8px;
}

.selection-header-button span {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--gold);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
}

.modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 25px;
  background: rgba(19, 22, 18, 0.74);
  display: grid;
  place-items: center;
  overflow-y: auto;
}

.product-modal {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.modal-close,
.drawer-close {
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 18px;
  color: var(--ink);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
}

.product-modal-image-area {
  min-height: 560px;
  padding: 45px;
  background:
    radial-gradient(circle at center, #fff 0, #f3ecdf 100%);
  display: grid;
  place-items: center;
}

.product-modal-image {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
}

.product-modal-placeholder {
  width: 100%;
  height: 100%;
  min-height: 390px;
  border-radius: 18px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 70px;
}

.product-modal-content {
  padding: clamp(38px, 6vw, 68px);
}

.product-modal-content .eyebrow {
  margin-top: 0;
}

.product-modal-content h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.04;
}

.modal-product-sku {
  margin: 13px 0 0;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.modal-product-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.modal-product-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--cream);
  font-size: 11px;
}

.modal-product-description {
  margin: 26px 0 0;
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.75;
}

.modal-product-price-area {
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.modal-product-price {
  display: block;
  color: var(--gold-dark);
  font-family: Georgia, serif;
  font-size: 34px;
}

.modal-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.secondary-action-link,
.modal-add-button {
  min-height: 48px;
}

.secondary-action-link {
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
}

.modal-add-button {
  width: auto;
  margin: 0;
  padding: 0 22px;
}

.selection-panel {
  position: fixed;
  z-index: 1100;
  inset: 0;
}

.selection-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 22, 18, 0.58);
}

.selection-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100%;
  padding: 28px;
  background: #fffdf9;
  box-shadow: -18px 0 55px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.selection-drawer-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.selection-drawer-header .eyebrow {
  margin-top: 0;
}

.selection-drawer-header h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}

.selection-items {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.selection-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
}

.selection-item-image {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--cream);
}

.selection-item-placeholder {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  color: var(--gold);
  background: var(--cream);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
}

.selection-item-content {
  min-width: 0;
}

.selection-item-content strong,
.selection-item-content span {
  display: block;
}

.selection-item-content strong {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.selection-item-content span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.selection-item-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.selection-quantity {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
}

.remove-selection-item {
  margin-left: auto;
  border: 0;
  color: #9d3434;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.selection-empty {
  margin: auto 0;
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

.selection-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.selection-summary {
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.selection-summary span {
  color: var(--muted);
  font-size: 13px;
}

.selection-continue-button {
  width: 100%;
  margin-top: 18px;
}

.clear-selection-button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 0;
  color: #9d3434;
  background: transparent;
  font-weight: 700;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
  }

  .product-modal-image-area {
    min-height: 300px;
    padding: 30px;
  }

  .product-modal-placeholder {
    min-height: 250px;
  }

  .modal-actions,
  .secondary-action-link,
  .modal-add-button {
    width: 100%;
  }

  .selection-drawer {
    padding: 22px 18px;
  }
}

.request-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 50px);
  padding: clamp(28px, 5vw, 48px);
  overflow-y: auto;
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.request-modal-header {
  padding-right: 36px;
}

.request-modal-header .eyebrow {
  margin-top: 0;
}

.request-modal-header h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 400;
}

.request-modal-header > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.request-modal form {
  margin-top: 28px;
}

.request-modal label {
  display: block;
  margin: 18px 0 7px;
  font-size: 12px;
  font-weight: 700;
}

.request-modal input,
.request-modal textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font: inherit;
}

.request-modal input:focus,
.request-modal textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(164, 122, 42, 0.11);
}

.request-modal textarea {
  resize: vertical;
  line-height: 1.5;
}

.request-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.request-summary-card {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.request-summary-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.request-summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.request-summary-card strong {
  color: var(--gold-dark);
}

.request-modal-actions {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.request-modal-actions .primary-button,
.request-modal-actions .secondary-button {
  width: auto;
  margin: 0;
  min-height: 48px;
  padding: 0 21px;
}

.request-success {
  padding: 22px;
  border: 1px solid #b9d9c7;
  border-radius: 12px;
  color: #256246;
  background: #edf8f2;
  line-height: 1.6;
}

@media (max-width: 650px) {
  .request-form-row,
  .request-summary-card {
    grid-template-columns: 1fr;
  }

  .request-modal-actions {
    flex-direction: column-reverse;
  }

  .request-modal-actions .primary-button,
  .request-modal-actions .secondary-button {
    width: 100%;
  }
}


/* =====================================================
   RECUPERACIÓN DE USUARIO Y CONTRASEÑA
   ===================================================== */

.forgot-access-button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px 4px;

  border: 0;
  background: transparent;

  color: #8a5d16;
  font: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.forgot-access-button:hover {
  color: #214b39;
}

.forgot-access-panel {
  margin-top: 22px;
  padding: 20px;

  background: #ffffff;
  border: 1px solid rgba(138, 93, 22, 0.22);
  border-radius: 16px;

  box-shadow: 0 12px 30px rgba(31, 29, 24, 0.08);
}

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

.forgot-access-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.forgot-access-heading h3 {
  margin: 3px 0 0;
  font-size: 21px;
  line-height: 1.2;
}

.forgot-access-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;

  border: 1px solid rgba(31, 75, 57, 0.22);
  border-radius: 50%;

  background: #ffffff;
  color: #214b39;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;
}

.forgot-access-description {
  margin: 14px 0 18px;
  color: #625b4f;
  font-size: 14px;
  line-height: 1.55;
}

#forgotAccessForm {
  display: grid;
  gap: 10px;
}

#forgotAccessForm .primary-button {
  margin-top: 6px;
}

@media (max-width: 650px) {
  .forgot-access-panel {
    padding: 17px;
  }

  .forgot-access-heading h3 {
    font-size: 19px;
  }
}


/* Página para restablecer contraseña */
.password-reset-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
  background: #f5f1e8;
}

.password-reset-card {
  width: min(100%, 470px);
  padding: 34px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(31, 29, 24, 0.12);
}

.password-reset-card h1 {
  margin: 8px 0 12px;
}

.password-reset-card form {
  display: grid;
  gap: 11px;
  margin-top: 24px;
}

.password-reset-card input {
  width: 100%;
  box-sizing: border-box;
}

.password-reset-card .primary-button {
  margin-top: 10px;
}

.reset-login-link {
  display: block;
  margin-top: 22px;
  color: #8a5d16;
  text-align: center;
  font-weight: 700;
}


/* =====================================================
   PÁGINAS DE RECUPERACIÓN DE ACCESO
   ===================================================== */

.forgot-access-button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px 4px;

  color: #8a5d16;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.forgot-access-button:hover {
  color: #214b39;
}

.recovery-page-description,
.recovery-confirmation-text {
  color: #625b4f;
  font-size: 15px;
  line-height: 1.65;
}

.recovery-confirmation-card {
  text-align: center;
}

.recovery-success-icon {
  display: grid;
  place-items: center;

  width: 64px;
  height: 64px;
  margin: 0 auto 22px;

  border-radius: 50%;

  background: #214b39;
  color: #ffffff;

  font-size: 34px;
  font-weight: 800;
}

.recovery-information-box {
  margin: 24px 0;
  padding: 18px;

  border: 1px solid rgba(138, 93, 22, 0.23);
  border-radius: 14px;

  background: #fffaf0;
  text-align: left;
}

.recovery-information-box strong {
  display: block;
  margin-bottom: 7px;
  color: #8a5d16;
}

.recovery-information-box p {
  margin: 0;
  color: #625b4f;
  font-size: 14px;
  line-height: 1.55;
}

.recovery-return-button {
  display: block;
  box-sizing: border-box;

  width: 100%;
  margin-top: 18px;

  text-align: center;
  text-decoration: none;
}

#forgotPasswordForm {
  display: grid;
  gap: 11px;
  margin-top: 24px;
}

#forgotPasswordForm input {
  width: 100%;
  box-sizing: border-box;
}

#forgotPasswordForm .primary-button {
  margin-top: 9px;
}


/* Centrar y mejorar botón de regreso */
.recovery-return-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-height: 54px !important;
  padding: 14px 20px !important;
  box-sizing: border-box !important;

  text-align: center !important;
  text-decoration: none !important;
  line-height: 1.2 !important;

  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;

  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    #b8892d 0%,
    #9f741f 100%
  ) !important;

  border-radius: 14px !important;

  box-shadow:
    0 10px 24px rgba(159, 116, 31, 0.18) !important;
}

.recovery-return-button:hover {
  transform: translateY(-1px) !important;

  box-shadow:
    0 14px 28px rgba(159, 116, 31, 0.22) !important;
}


/* =====================================================
   LOGO REAL DE ALIMENTOS EUROPEOS
   ===================================================== */

.platform-brand-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: auto;
  max-width: 220px;
  min-height: 62px;

  margin-bottom: 20px;
}

.platform-brand-logo {
  display: block;

  width: auto;
  max-width: 100%;
  height: 58px;

  object-fit: contain;
  object-position: left center;
}


/* Logo del encabezado del área privada */
.header-brand .platform-brand-logo-wrapper {
  flex: 0 0 auto;

  max-width: 135px;
  min-height: 46px;

  margin: 0;
}

.header-brand .platform-brand-logo {
  height: 44px;
}


/* Logo en formulario de acceso */
.login-card .platform-brand-logo-wrapper {
  max-width: 190px;
  margin-bottom: 20px;
}


/* Logo del panel principal izquierdo */
.presentation-panel .platform-brand-logo-wrapper {
  max-width: 230px;
  min-height: 70px;
  margin-bottom: 26px;
}

.presentation-panel .platform-brand-logo {
  height: 68px;
}


/* Logo en recuperación y cambio de contraseña */
.password-reset-card .platform-brand-logo-wrapper {
  justify-content: center;

  max-width: 205px;
  min-height: 64px;

  margin: 0 auto 24px;
}

.password-reset-card .platform-brand-logo {
  height: 62px;
  object-position: center;
}


/* Página de confirmación */
.recovery-confirmation-card .platform-brand-logo-wrapper {
  margin-bottom: 20px;
}


/* Móvil */
@media (max-width: 650px) {
  .platform-brand-logo-wrapper {
    max-width: 175px;
    min-height: 54px;
  }

  .platform-brand-logo {
    height: 50px;
  }

  .presentation-panel .platform-brand-logo-wrapper {
    max-width: 190px;
    min-height: 58px;
  }

  .presentation-panel .platform-brand-logo {
    height: 56px;
  }

  .password-reset-card .platform-brand-logo-wrapper {
    max-width: 175px;
    min-height: 54px;
  }

  .password-reset-card .platform-brand-logo {
    height: 52px;
  }

  .header-brand .platform-brand-logo-wrapper {
    max-width: 110px;
    min-height: 40px;
  }

  .header-brand .platform-brand-logo {
    height: 38px;
  }
}
