:root {
  --green: #1d4a38;
  --green-deep: #16392c;
  --cream: #f4f1ea;
  --ink: #1a1c19;
  --muted: #6e726c;
  --line: #e4ddd2;
  --sans: "Outfit", "Avenir Next", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
body.auth-body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); }
body.auth-body * { box-sizing: border-box; }
body.auth-body a { color: inherit; text-decoration: none; }
body.auth-body button, body.auth-body input, body.auth-body select { font: inherit; color: inherit; }
body.auth-body h1, body.auth-body h2 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; margin: 0; line-height: 1.02; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}
.auth-visual {
  position: relative; overflow: hidden;
  margin: 16px 8px 16px 16px; border-radius: 28px;
  min-height: calc(100vh - 32px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 42px 36px 26px;
  box-shadow: 0 18px 50px rgba(30, 40, 30, .12);
  animation: rise .7s cubic-bezier(.22,.7,.2,1) both;
}
.auth-visual .photo {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% center;
}
.auth-visual.create .photo { object-position: 62% center; }
.visual-copy, .pills { position: relative; z-index: 2; }
.visual-copy h1 { font-size: clamp(46px, 4.5vw, 68px); color: #143528; max-width: 9ch; }
.visual-copy p { max-width: 32ch; margin: 14px 0 0; color: #3c4a42; font-size: 16px; line-height: 1.45; }
.auth-visual.create .visual-copy h1 { color: #f4f1e6; }
.auth-visual.create .visual-copy p { color: rgba(244, 241, 230, .9); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.pills li {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); color: #1c241f;
  border-radius: 999px; padding: 6px 12px 6px 6px;
  font-size: 12.5px; font-weight: 650;
  box-shadow: 0 8px 18px rgba(20,30,20,.08);
}
.pills span {
  width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; flex: none;
}
.pills svg { width: 14px; height: 14px; }

.auth-panel {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 7vw 40px 4vw;
  animation: rise .75s .08s cubic-bezier(.22,.7,.2,1) both;
}
.back-home {
  position: absolute; top: 22px; left: 22px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--green);
  display: grid; place-items: center;
}
.back-home svg { width: 20px; height: 20px; }
.back-home:hover { border-color: var(--green); background: #f6faf7; }
.sprig { position: absolute; pointer-events: none; color: #2f6b45; }
.sprig.tr { top: 0; right: 0; width: 150px; }
.sprig.bl { bottom: 0; left: 0; width: 130px; }
.brand { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 8px; }
.brand-leaf { display: none; width: 54px; height: 54px; color: #2f6b45; }
.auth-logo img { height: 78px; width: auto; mix-blend-mode: multiply; }
.auth-panel h2 { text-align: center; font-size: clamp(34px, 3vw, 44px); margin-top: 8px; }
.lede { text-align: center; color: var(--muted); margin: 8px 0 22px; font-size: 15px; }
.auth-form { width: min(440px, 100%); margin: 0 auto; }
.field {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 14px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  animation: rise .5s both;
}
.auth-form .field:nth-of-type(1) { animation-delay: .12s; }
.auth-form .field:nth-of-type(2) { animation-delay: .18s; }
.auth-form .field:nth-of-type(3) { animation-delay: .24s; }
.auth-form .field:nth-of-type(4) { animation-delay: .3s; }
.field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,74,56,.12); }
.field.bad { border-color: #b4533a; }
.field svg { width: 18px; height: 18px; color: #8a847c; flex: none; }
.field input, .field select { border: 0; outline: none; width: 100%; background: transparent; height: 100%; }
.field select { width: 74px; flex: none; font-weight: 650; border-right: 1px solid var(--line); margin-right: 4px; }
.eye { border: 0; background: transparent; padding: 0; cursor: pointer; color: #8a847c; display: grid; }
.rowline { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; margin: 2px 0 14px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { accent-color: var(--green); width: 16px; height: 16px; }
.rowline a, .switch a { color: var(--green); font-weight: 700; }
.form-msg { font-size: 13.5px; margin: 0 0 10px; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.error { color: #9a3b28; }
.form-msg.info { color: var(--green); }
.submit {
  width: 100%; height: 52px; border: 0; border-radius: 12px; margin-top: 4px;
  background: var(--green); color: #fff; font-weight: 650; font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s ease, transform .15s ease;
}
.submit:hover { background: var(--green-deep); }
.submit:active { transform: scale(.985); }
.submit:disabled { opacity: .75; cursor: progress; }
.or { display: flex; align-items: center; gap: 12px; color: #8a847c; font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: #e6e0d6; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.socials button {
  height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 650; cursor: pointer;
}
.socials button:hover { border-color: #cfc6b8; }
.socials svg { width: 18px; height: 18px; }
.switch { text-align: center; margin: 18px 0 0; font-size: 14.5px; }
.demo-box {
  margin-top: 16px; padding: 12px 14px; border-radius: 14px;
  background: #f3f8f2; border: 1px dashed #b7d0b4; font-size: 13.5px; text-align: left;
}
.demo-box b { display: block; margin-bottom: 6px; color: #1d4a38; }
.demo-box p { margin: 2px 0; }
.demo-box span { font-weight: 750; }
.demo-box button {
  margin-top: 10px; border: 0; background: #1d4a38; color: #fff;
  border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer;
}
.auth-form.shake { animation: shake .35s ease; }

.dash { width: min(var(--frame, 1100px), calc(100% - 40px)); margin: 28px auto 64px; }
.dash-hero h1 { font-size: clamp(40px, 5vw, 62px); }
.dash-hero h1 em { font-style: italic; color: var(--green); }
.dash-hero p { color: var(--muted); margin: 8px 0 0; }
.dash-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.quiet {
  border: 1px solid #d9d2c6; background: #fff; border-radius: 999px;
  padding: 12px 16px; cursor: pointer; font-weight: 650;
}
.quiet:hover { border-color: var(--green); color: var(--green); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.stat, .panel {
  background: #fff; border: 1px solid #efeae1; border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: 0 8px 22px rgba(30,40,30,.04);
  animation: rise .6s both;
}
.stat:nth-child(2) { animation-delay: .08s; }
.stat:nth-child(3) { animation-delay: .16s; }
.stat span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.stat b { font-family: var(--serif); font-size: 32px; font-weight: 560; }
.dash-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.panel h2 { font-size: 28px; margin-bottom: 14px; }
.panel label { display: block; font-size: 13px; font-weight: 650; margin: 10px 0 6px; }
.panel input {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 12px; background: #fff;
}
.panel input[readonly] { background: #f6f3ec; color: #5c615c; }
.panel .submit { margin-top: 16px; }
.order { padding: 12px 0; border-top: 1px solid #efeae1; }
.order header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.order b { font-size: 15px; }
.order small, .order li { color: var(--muted); font-size: 13.5px; }
.order ul { margin: 8px 0 0; padding-left: 18px; }
.status { color: var(--green); font-weight: 700; font-size: 12.5px; }
.empty-orders { color: var(--muted); }
.empty-orders .btn { margin-top: 12px; }
.panel.orders { animation-delay: .12s; }
.panel.profile { animation-delay: .06s; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-visual, .auth-panel, .field, .stat, .panel, .auth-form.shake { animation: none; }
}
@media (max-width: 980px) {
  .auth-shell { display: block; }
  .auth-visual { display: none; }
  .auth-panel {
    min-height: 100vh; justify-content: flex-start;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  }
  .back-home { top: calc(12px + env(safe-area-inset-top)); left: 12px; width: 44px; height: 44px; }
  .brand { margin-top: 48px; }
  .sprig { display: none; }
  .brand-leaf { display: block; width: 40px; height: 40px; }
  .auth-logo img { height: 64px; }
  .auth-panel h2 { font-size: 32px; }
  .field { height: 52px; }
  .field input, .field select { font-size: 16px; }
  .submit { height: 52px; font-size: 16px; }
  .socials button { min-height: 48px; }
  .demo-box { overflow-wrap: anywhere; }
  .dash-grid, .stats { grid-template-columns: 1fr; }
}
