:root {
  color-scheme: light;
  --ink: #173b35;
  --muted: #62776c;
  --canvas: #f3f6f1;
  --teal: #116756;
  --deep: #123d3b;
  --mint: #d5ead7;
  --line: #d8e3d8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.6 "Segoe UI", "Nirmala UI", Arial, sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { transition: background .18s, color .18s, box-shadow .18s; }
:focus-visible { outline: 3px solid #379980; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
.auth-mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1540px;
  padding: 25px 52px;
  margin: auto;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}
.auth-brand small {
  display: block;
  color: #658174;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .18em;
  margin-top: 5px;
}
.brand-mark {
  width: 43px;
  height: 43px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #b5d2bd;
  border-radius: 13px;
  color: #1b5f4c;
  background: #d9ebda;
  font-size: 30px;
  line-height: 1;
}
.auth-mast-right { display: flex; align-items: center; gap: 24px; }
.access-label { color: var(--muted); font-size: 12px; }
.auth-language {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #c6d8cb;
  border-radius: 10px;
  background: #e9f0e6;
}
.auth-language button {
  min-width: 62px;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #506b5d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}
.auth-language button[aria-pressed=true] {
  color: #fff;
  background: var(--deep);
  box-shadow: 0 2px 5px #173c2620;
}
.auth-language button[aria-pressed=false]:hover { background: #d7e5d7; }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  max-width: 1436px;
  min-height: min(770px, calc(100vh - 156px));
  margin: 10px auto 0;
  padding: 0 52px;
}
.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(30px, 3.8vw, 55px);
  border-radius: 27px;
  background: linear-gradient(145deg, #143f3b, #174c40 65%, #245842);
  color: #f0f5e9;
  isolation: isolate;
}
.auth-story:before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 510px;
  height: 510px;
  top: -240px;
  right: -215px;
  border: 1px solid #8ac29420;
  border-radius: 50%;
  box-shadow: 0 0 0 55px #96ca9a06, 0 0 0 110px #96ca9a06, 0 0 0 166px #96ca9a05;
  pointer-events: none;
}
.story-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c0d2bc;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .19em;
}
.story-dot { width: 7px; height: 7px; background: #b8d9a5; border-radius: 50%; }
.story-copy { margin: clamp(32px, 4vw, 57px) 0 30px; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: #b8d0b4;
  margin-bottom: 15px;
  letter-spacing: .04em;
}
.story-copy h1 {
  font-size: clamp(32px, 3.7vw, 52px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.045em;
}
.story-copy h1 span { display: block; }
.story-copy h1 span:last-child { color: #c4dda9; }
.story-description {
  max-width: 355px;
  margin-top: 21px;
  color: #bbd0bf;
  font-size: 14px;
  line-height: 1.8;
}
.workflow-visual {
  margin-top: auto;
  padding: 17px 18px 9px;
  border: 1px solid #a8c5a629;
  border-radius: 15px;
  background: #061f1a18;
}
.workflow-caption {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #9dbb9d;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .12em;
  padding: 0 4px 11px;
}
.workflow-line { flex: 1; height: 1px; background: #aac9a32b; }
.workflow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 10px;
}
.workflow-step.featured {
  margin: 1px -4px;
  padding: 13px 12px;
  border: 1px solid #b0d4a34a;
  background: #e9f7d915;
}
.step-icon {
  display: grid;
  place-items: center;
  height: 35px;
  width: 35px;
  border: 1px solid #b9d1b42d;
  border-radius: 10px;
  color: #c1dcb2;
}
svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.workflow-step small { display: block; font-size: 8px; letter-spacing: .12em; color: #94b39b; line-height: 1.25; }
.workflow-step strong { font-size: 12px; color: #dce9d5; font-weight: 550; }
.step-done, .step-arrow, .step-live { margin-left: auto; }
.step-done { color: #b0c998; font-size: 14px; }
.step-arrow { color: #b4ccad; }
.step-live { height: 6px; width: 6px; border-radius: 50%; background: #c8dba6; box-shadow: 0 0 0 4px #c8dba610; }
.story-footer { display: flex; align-items: center; gap: 10px; margin-top: 27px; color: #b3c6ad; font-size: 10px; }
.footer-line { width: 22px; height: 1px; background: #adc8996b; flex: none; }
.auth-form-side { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 22px 0; }
.auth-card {
  width: 100%;
  max-width: 438px;
  padding: 33px;
  border: 1px solid #d8e3d7;
  border-radius: 21px;
  background: #fffefa;
  box-shadow: 0 14px 38px #294f2c08, 0 2px 4px #294f2c03;
  animation: cardIn .28s ease-out;
}
.card-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 21px; color: #467460; font-size: 11px; font-weight: 650; letter-spacing: .025em; }
.lock-mark { display: grid; place-items: center; height: 33px; width: 33px; border: 1px solid #d5e4d3; border-radius: 10px; color: #3b6f54; background: #f0f5eb; }
.lock-mark svg { width: 18px; height: 18px; }
.auth-card h2 { font-size: 28px; line-height: 1.35; font-weight: 650; letter-spacing: -.035em; }
.form-description { margin: 9px 0 26px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.auth-field { margin-bottom: 19px; }
.auth-field label { display: block; font-size: 12px; font-weight: 650; color: #3b5547; margin-bottom: 7px; }
.auth-field input {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid #cbd9cc;
  border-radius: 9px;
  color: #1e3d30;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .16s, box-shadow .16s;
}
.auth-field input::placeholder { color: #849589; font-size: 13px; }
.auth-field input:focus { outline: none; border-color: #51896f; box-shadow: 0 0 0 3px #51896f16; }
.password-control { position: relative; }
.password-control input { padding-right: 47px; }
.password-toggle { display: grid; place-items: center; position: absolute; right: 5px; top: 5px; bottom: 5px; width: 35px; border: 0; border-radius: 6px; background: transparent; color: #748d7b; }
.password-toggle:hover { color: #285b42; background: #edf4e8; }
.password-toggle svg { width: 18px; height: 18px; }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; margin-top: 6px; padding: 11px 16px; border: 1px solid var(--teal); border-radius: 9px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 650; box-shadow: 0 3px 8px #1e59481a; }
.auth-submit:hover:not(:disabled) { background: #0e5144; border-color: #0e5144; box-shadow: 0 4px 12px #1e594826; }
.auth-submit:disabled { cursor: wait; opacity: .75; }
.submit-arrow { margin-left: auto; font-size: 19px; font-weight: 400; line-height: 1; }
.auth-submit [data-submit-label] { margin-right: auto; }
.submit-spinner { height: 14px; width: 14px; flex: none; border: 2px solid #ffffff50; border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.card-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 23px; padding-top: 18px; border-top: 1px solid #e6ece0; color: #7b8a79; font-size: 11px; line-height: 1.7; }
.note-dot { width: 5px; height: 5px; background: #8aa77a; border-radius: 50%; flex: none; margin-top: 6px; }
.auth-support { margin-top: 22px; color: #768771; max-width: 390px; padding: 0 10px; font-size: 11px; text-align: center; line-height: 1.8; }
.auth-error { margin: 0 0 19px; padding: 11px 13px; border: 1px solid #efd0bc; border-radius: 8px; background: #fff3e9; color: #8a492e; font-size: 12px; line-height: 1.65; }
.auth-footer { display: flex; justify-content: space-between; gap: 15px; max-width: 1436px; margin: 25px auto 0; padding: 0 52px 25px; color: #7a8d7c; font-size: 10px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 25px; color: #5a795e; font-size: 11px; text-decoration: none; }
.back-link:hover { color: #174e38; }
.signed-in { display: flex; gap: 10px; align-items: center; padding: 11px 12px; background: #f2f6ed; border: 1px solid #e0e8d8; border-radius: 9px; margin-bottom: 23px; }
.account-avatar { display: grid; place-items: center; height: 32px; width: 32px; background: #e0ebd5; border-radius: 9px; color: #4b714b; font-weight: 650; }
.signed-in small { display: block; font-size: 9px; color: #7a8d70; line-height: 1.4; }
.signed-in strong { display: block; font-size: 12px; color: #34523b; font-weight: 650; }
.signed-in a { margin-left: auto; color: #6b8263; font-size: 10px; text-decoration: none; }
.signed-in a:hover { text-decoration: underline; }
.field-hint { display: block; margin-top: 7px; color: #7c8b74; font-size: 10px; line-height: 1.6; }
body[data-auth-page=account] .auth-card { padding-top: 27px; }
body[data-auth-page=account] .card-eyebrow { margin-bottom: 14px; }
body[data-auth-page=account] .form-description { margin-bottom: 18px; }
body[data-auth-page=account] .auth-field { margin-bottom: 16px; }
@keyframes cardIn { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1600px) {
  .auth-layout { min-height: 780px; }
}
@media (max-width: 1000px) {
  .auth-mast { padding: 22px 30px; }
  .auth-layout { padding: 0 30px; gap: 30px; }
  .auth-story { padding: 30px; }
  .story-copy h1 { font-size: 36px; }
  .auth-card { padding: 27px; }
  .auth-card h2 { font-size: 25px; }
  .access-label { display: none; }
  .auth-footer { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 740px) {
  .auth-mast { padding: 20px; }
  .auth-brand { font-size: 14px; gap: 8px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px; font-size: 26px; }
  .auth-brand small { font-size: 8px; letter-spacing: .12em; }
  .auth-mast-right { gap: 0; }
  .auth-language button { min-width: 47px; font-size: 11px; padding: 4px 7px; }
  .auth-layout { grid-template-columns: minmax(0,1fr); min-height: 0; padding: 0 20px; gap: 0; margin-top: 3px; }
  .auth-story { padding: 26px; border-radius: 20px; }
  .story-top { font-size: 9px; }
  .story-copy { margin: 20px 0 0; }
  .story-copy .eyebrow { display: none; }
  .story-copy h1 { font-size: 31px; line-height: 1.3; }
  .story-description { font-size: 12px; line-height: 1.7; margin-top: 12px; max-width: 100%; }
  .workflow-visual, .story-footer { display: none; }
  .auth-form-side { padding: 22px 0 0; }
  .auth-card { max-width: 100%; padding: 26px; border-radius: 18px; }
  .auth-card h2 { font-size: 25px; }
  .auth-support { margin-top: 17px; }
  .auth-footer { padding: 0 20px 20px; margin-top: 22px; font-size: 9px; }
}
@media (max-width: 370px) {
  .auth-mast { padding: 16px 13px; gap: 8px; }
  .auth-layout { padding: 0 13px; }
  .auth-brand { font-size: 12px; }
  .auth-brand small { font-size: 7px; }
  .auth-language button { min-width: 43px; padding: 4px 5px; }
  .auth-card { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
