/* Create4Less.com authentication pages -------------------------------------- */
:root {
  --auth-bg: #f7f4ef;
  --auth-panel: #fffdfa;
  --auth-line: #e7e0d8;
  --auth-text: #171427;
  --auth-muted: #77717f;
  --auth-purple: #6728e8;
  --auth-purple-soft: #f0e8ff;
  --auth-green: #159b47;
  --auth-green-soft: #e9f8ee;
  --auth-danger: #bc3549;
  --auth-danger-soft: #fff0f2;
  --auth-warning: #94610d;
  --auth-warning-soft: #fff7df;
  --auth-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --auth-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body.auth-page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 92% 2%, rgba(103,40,232,.10), transparent 34rem),
    radial-gradient(circle at 4% 92%, rgba(23,168,75,.05), transparent 30rem),
    var(--auth-bg);
  font-family: var(--auth-font);
}
.auth-page a { color: inherit; }
.auth-page button,
.auth-page input { font: inherit; }

.auth-shell {
  width: min(1240px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.auth-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--auth-line);
}
.auth-brand {
  display: inline-grid;
  text-decoration: none;
}
.auth-brand > span {
  color: #17121d;
  font-family: var(--auth-serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.055em;
}
.auth-brand > span span { color: var(--auth-purple); }
.auth-brand small {
  margin-top: 7px;
  color: #827b85;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .31em;
  text-align: center;
}
.auth-header nav,
.auth-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.auth-header nav a,
.auth-footer a {
  color: var(--auth-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.auth-header nav a:hover,
.auth-footer a:hover { color: var(--auth-purple); }

.auth-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .72fr);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
  padding: 52px 4% 66px;
}

.auth-story { max-width: 620px; }
.auth-story-kicker {
  color: var(--auth-purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .27em;
}
.auth-story h2 {
  margin: 15px 0 20px;
  color: var(--auth-text);
  font-family: var(--auth-serif);
  font-size: clamp(46px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -.055em;
}
.auth-story > p {
  max-width: 560px;
  margin: 0;
  color: var(--auth-muted);
  font-size: 17px;
  line-height: 1.62;
}
.auth-benefits {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}
.auth-benefits div {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  color: #453e4c;
  border: 1px solid var(--auth-line);
  border-radius: 11px;
  background: rgba(255,253,250,.72);
  font-size: 13px;
  font-weight: 720;
}
.auth-benefits svg { width: 18px; height: 18px; color: var(--auth-purple); }

.auth-card {
  width: 100%;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--auth-line);
  border-radius: 24px;
  background: rgba(255,253,250,.95);
  box-shadow: 0 28px 85px rgba(50,35,25,.11);
}
.auth-card.account-card { max-width: 680px; }
.auth-card-heading h1 {
  margin: 0 0 9px;
  color: var(--auth-text);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.05em;
}
.auth-card-heading .sub {
  margin: 0 0 24px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-page label:not(.remember):not(.check-row) {
  display: block;
  margin: 16px 0 7px;
  color: #342e3a;
  font-size: 13px;
  font-weight: 780;
}
.auth-page input[type="text"],
.auth-page input[type="email"],
.auth-page input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  color: var(--auth-text);
  border: 1px solid #ded6e5;
  border-radius: 11px;
  background: #fff;
  outline: none;
}
.auth-page input:focus {
  border-color: rgba(103,40,232,.66);
  box-shadow: 0 0 0 3px rgba(103,40,232,.105);
}

.remember,
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.5;
}
.remember input,
.check-row input { width: auto; margin: 3px 0 0; accent-color: var(--auth-purple); }
.check-row a { color: var(--auth-purple); font-weight: 750; }

.btn,
button.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--auth-purple), #8248f5);
  box-shadow: 0 13px 28px rgba(103,40,232,.18);
  text-decoration: none;
  font-weight: 820;
  cursor: pointer;
}
.btn.full { width: 100%; margin-top: 22px; }
.btn.secondary {
  color: var(--auth-purple);
  border-color: #d9caf5;
  background: #fff;
  box-shadow: none;
}
.btn.ghost {
  color: #625b68;
  border-color: var(--auth-line);
  background: transparent;
  box-shadow: none;
}

.alert {
  margin: 0 0 17px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.48;
}
.alert svg { width: 18px; height: 18px; margin-top: 1px; }
.alert.status { color: #146a32; border-color: #bee5ca; background: var(--auth-green-soft); }
.alert.warning { color: var(--auth-warning); border-color: #ead89b; background: var(--auth-warning-soft); }
.alert.errors { color: var(--auth-danger); border-color: #f0c8ce; background: var(--auth-danger-soft); }

.links,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.links a { color: var(--auth-purple); font-size: 13px; font-weight: 760; text-decoration: none; }
.small { margin-top: 14px; color: var(--auth-muted); font-size: 12.5px; line-height: 1.52; }

.panel {
  padding: 18px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: #fbf8f3;
}
.panel h2 { margin: 0 0 10px; font-size: 18px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  color: #146a32;
  border-radius: 999px;
  background: var(--auth-green-soft);
  font-size: 11px;
  font-weight: 850;
}
.pill.warn { color: var(--auth-warning); background: var(--auth-warning-soft); }
.grid { display: grid; gap: 14px; }
.account-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.metric { margin-top: 6px; font-size: 32px; font-weight: 900; letter-spacing: -.045em; }

.auth-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--auth-muted);
  border-top: 1px solid var(--auth-line);
  font-size: 12px;
}

@media (max-width: 900px) {
  .auth-stage { grid-template-columns: 1fr; gap: 32px; padding-inline: 0; }
  .auth-story { max-width: 760px; }
  .auth-story h2 { font-size: clamp(42px, 9vw, 65px); }
  .auth-card { max-width: 620px; }
}

@media (max-width: 560px) {
  .auth-shell { width: min(100% - 24px, 1240px); }
  .auth-header { min-height: 74px; }
  .auth-header nav { display: none; }
  .auth-brand > span { font-size: 24px; }
  .auth-stage { padding-top: 30px; }
  .auth-story { display: none; }
  .auth-card { padding: 24px 20px; border-radius: 18px; }
  .auth-footer { align-items: flex-start; flex-direction: column; padding: 22px 0; }
}
