:root {
  --paper: #f4f0e7;
  --paper-light: #fffdf8;
  --ink: #252b27;
  --ink-soft: #6b716b;
  --line: rgba(37, 43, 39, 0.18);
  --copper: #c95735;
  --copper-dark: #a83d20;
  --sage: #536a5b;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(520px, 0.87fr) minmax(620px, 1.13fr);
  min-height: 100svh;
}

.account-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 35px clamp(36px, 6vw, 100px) 28px;
  background: var(--paper-light);
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.account-brand svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--copper);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-content {
  align-self: center;
  width: min(100%, 510px);
  padding-block: 54px;
}

.account-view[hidden] {
  display: none;
}

.account-view.is-entering {
  animation: view-enter 520ms var(--ease) both;
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-eyebrow {
  margin: 0 0 19px;
  color: var(--copper);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.account-view h1 {
  max-width: 9ch;
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(54px, 6vw, 82px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.89;
  text-wrap: balance;
}

.account-heading-mobile {
  display: none;
}

.account-lead {
  max-width: 43ch;
  margin: 0 0 38px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.account-view form {
  display: grid;
  gap: 23px;
}

.account-view form > label:not(.remember),
.account-field,
.account-form-grid label {
  display: grid;
  gap: 8px;
}

.account-view form > label > span:first-child,
.account-form-grid label > span:first-child,
.account-field > label {
  font-size: 11px;
  font-weight: 750;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
}

.account-view input[type="text"],
.account-view input[type="email"],
.account-view input[type="password"] {
  width: 100%;
  min-height: 53px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  transition: border-color 170ms ease;
}

.account-view input:focus {
  border-color: var(--copper);
}

.account-view input[aria-invalid="true"] {
  border-color: #b94540;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 66px !important;
}

.password-field button {
  position: absolute;
  right: 0;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -4px;
}

.account-row > a,
.account-back,
.account-link-button {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  text-underline-offset: 3px;
}

.account-switch {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.account-switch a {
  color: var(--copper-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10px;
}

.remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--copper);
}

.account-submit {
  min-height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms ease;
}

.account-submit:hover {
  transform: translateY(-2px);
  background: #38413b;
}

.account-submit:disabled {
  transform: none;
  opacity: .65;
  cursor: wait;
}

.account-submit:focus-visible,
.password-field button:focus-visible,
.account-back:focus-visible,
.account-link-button:focus-visible,
.account-switch a:focus-visible {
  outline: 3px solid rgba(201, 87, 53, .27);
  outline-offset: 3px;
}

.account-view input[type="text"]:focus-visible,
.account-view input[type="email"]:focus-visible,
.account-view input[type="password"]:focus-visible {
  border-bottom-color: var(--copper);
  box-shadow: 0 2px 0 rgba(201, 87, 53, .22);
  outline: 0;
}

.account-status {
  min-height: 20px;
  margin: -8px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.account-status.is-error {
  color: #a73733;
}

.account-status.is-success {
  color: #2f724a;
}

.account-back {
  display: inline-block;
  margin-top: 25px;
}

.account-link-button {
  margin-top: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.password-rule {
  margin: -5px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.account-footer {
  display: grid;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 10px;
}

.account-footer p {
  margin: 0;
}

.account-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
}

.account-footer a {
  color: var(--ink);
  font-weight: 750;
}

.account-footer button {
  color: var(--ink);
  font-weight: 750;
}

.account-visual {
  position: relative;
  min-width: 0;
  min-height: 100svh;
  overflow: hidden;
  background: var(--sage);
}

.account-visual-map {
  position: absolute;
  inset: 0;
}

.account-visual-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(.82) contrast(.96);
}

.terrain-a {
  fill: #768b79;
}

.terrain-b {
  fill: #455c4d;
}

.road {
  fill: none;
  stroke: rgba(244, 240, 231, .4);
  stroke-width: 34;
}

.parcel,
.parcel-inner {
  fill: rgba(201, 87, 53, .12);
  stroke: rgba(255, 253, 248, .7);
  stroke-width: 2;
}

.parcel-inner {
  fill: none;
  stroke: rgba(255, 253, 248, .36);
}

.utility {
  fill: none;
  stroke: #efb08e;
  stroke-width: 7;
  stroke-dasharray: 14 12;
}

.poles {
  fill: none;
  stroke: #fffdf8;
  stroke-width: 5;
}

.account-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 34, 29, .08), rgba(26, 34, 29, .48));
  content: "";
}

.account-visual-copy {
  position: absolute;
  z-index: 2;
  top: 7%;
  left: 7%;
  color: #fffdf8;
}

.account-visual-copy p {
  margin: 0 0 13px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 74px);
  letter-spacing: -.045em;
  line-height: .93;
}

.account-visual-copy strong {
  font-weight: 600;
}

.account-visual-copy span {
  color: rgba(255, 253, 248, .62);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.account-visual-result {
  position: absolute;
  z-index: 3;
  right: 6%;
  bottom: 6%;
  display: grid;
  min-width: 285px;
  padding: 24px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 24px 60px rgba(24, 31, 27, .24);
  backdrop-filter: blur(16px);
}

.account-visual-result small {
  color: var(--copper);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.account-visual-result strong {
  margin: 8px 0 5px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}

.account-visual-result span {
  color: var(--ink-soft);
  font-size: 10px;
}

@media (max-width: 1050px) {
  .account-layout {
    grid-template-columns: minmax(440px, .95fr) minmax(440px, 1.05fr);
  }

  .account-panel {
    padding-inline: 48px;
  }
}

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

  .account-panel {
    min-height: 100svh;
  }

  .account-visual {
    display: none;
  }
}

@media (max-width: 540px) {
  .account-panel {
    padding: 25px 22px 22px;
  }

  .account-content {
    padding-block: 50px 35px;
  }

  .account-view h1 {
    font-size: 54px;
  }

  .account-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* PasGruntu green cartography refresh for the account shell. */

:root {
  --paper: #f3f8f4;
  --paper-light: #ffffff;
  --ink: #12382a;
  --ink-soft: #5b7467;
  --ink-faint: #82988b;
  --line: rgba(18, 56, 42, .15);
  --line-strong: rgba(18, 56, 42, .28);
  --copper: #197447;
  --copper-dark: #0d5935;
  --sage: #2d8a58;
  --white: #fbfffc;
  --mint: #eef8f1;
}

body {
  background:
    radial-gradient(circle at 9% 14%, rgba(93, 188, 117, .08), transparent 30%),
    var(--paper);
  color: var(--ink);
}

.account-panel {
  border-right: 1px solid rgba(18, 56, 42, .10);
  background: rgba(255, 255, 255, .94);
}

.account-brand {
  color: var(--ink);
}

.account-brand svg {
  stroke: var(--copper);
}

.account-eyebrow,
.account-visual-result small {
  color: var(--copper);
}

.account-view h1 {
  color: var(--ink);
}

.account-lead,
.account-row > a,
.account-back,
.account-link-button,
.account-switch,
.remember,
.password-rule,
.account-footer {
  color: var(--ink-soft);
}

.account-view input[type="text"],
.account-view input[type="email"],
.account-view input[type="password"] {
  border-bottom-color: var(--line);
  color: var(--ink);
}

.account-view input:focus,
.account-view input[type="text"]:focus-visible,
.account-view input[type="email"]:focus-visible,
.account-view input[type="password"]:focus-visible {
  border-bottom-color: var(--copper);
  box-shadow: 0 2px 0 rgba(25, 116, 71, .18);
}

.account-view input[aria-invalid="true"] {
  border-color: #a94a43;
}

.password-field button,
.account-footer a,
.account-footer button {
  color: var(--copper-dark);
}

.remember input {
  accent-color: var(--copper);
}

.account-submit {
  background: var(--copper);
  color: var(--white);
}

.account-submit:hover {
  background: var(--copper-dark);
}

.account-submit:focus-visible,
.password-field button:focus-visible,
.account-back:focus-visible,
.account-link-button:focus-visible,
.account-switch a:focus-visible {
  outline-color: rgba(25, 116, 71, .34);
}

.account-status.is-success {
  color: var(--copper-dark);
}

.account-visual {
  background:
    radial-gradient(circle at 79% 16%, rgba(144, 224, 164, .18), transparent 27%),
    linear-gradient(145deg, #072f22, #0a5033 75%);
}

.account-visual-map img {
  filter: saturate(.76) contrast(.95);
}

.parcel,
.parcel-inner {
  fill: rgba(25, 116, 71, .14);
  stroke: rgba(251, 255, 252, .74);
}

.utility {
  stroke: #9be1ad;
}

.account-visual::after {
  background: linear-gradient(180deg, rgba(7, 47, 34, .08), rgba(7, 47, 34, .52));
}

.account-visual-result {
  border: 1px solid rgba(18, 56, 42, .12);
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 24px 60px rgba(7, 47, 34, .18);
}

.account-visual-result strong {
  color: var(--ink);
}

.account-visual-result span {
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .account-panel {
    border-right: 0;
  }
}

@media (max-width: 540px) {
  body {
    overflow-x: hidden;
  }

  .account-panel {
    padding: 22px 20px 18px;
  }

  .account-content {
    padding-block: 38px 30px;
  }

  .account-view h1 {
    font-size: 50px;
  }

  .account-lead {
    margin-bottom: 30px;
    font-size: 13px;
  }

  .account-view form {
    gap: 20px;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .account-submit {
    min-height: 52px;
  }

  .account-footer nav {
    gap: 8px 12px;
  }
}

@media (max-width: 820px) {
  .account-heading-desktop {
    display: none;
  }

  .account-heading-mobile {
    display: inline;
  }
}

/* Keep the visual panel framed while allowing the form to grow. */
@media (min-width: 821px) {
  html,
  body {
    min-height: 100%;
    overflow: auto;
  }

  .account-layout {
    grid-template-rows: auto;
    min-height: 100svh;
    height: auto;
    overflow: visible;
  }

  .account-panel,
  .account-visual {
    min-height: 100svh;
    height: auto;
  }

  .account-panel {
    grid-template-rows: auto 1fr auto;
    padding-block: 18px 16px;
  }

  .account-content {
    min-height: 0;
    padding-block: 32px;
  }

  .account-eyebrow {
    margin-bottom: 11px;
  }

  .account-view h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(46px, 4.6vw, 64px);
    line-height: .92;
  }

  .account-lead {
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.5;
  }

  .account-view form {
    gap: 12px;
  }

  .account-view form > label:not(.remember),
  .account-field,
  .account-form-grid label {
    gap: 5px;
  }

  .account-form-grid {
    gap: 16px;
  }

  .account-view input[type="text"],
  .account-view input[type="email"],
  .account-view input[type="password"] {
    min-height: 42px;
  }

  .account-submit {
    min-height: 48px;
    margin-top: 2px;
  }

  .account-status {
    min-height: 16px;
  }

  .account-switch {
    margin-top: 14px;
  }

  .account-footer {
    gap: 6px;
  }
}

/* Readable form feedback and touch targets across all account views. */
.account-field-error { color: #a94a43; font-size: 13px; line-height: 1.5; }
.account-field-error[hidden] { display: none; }
.account-view form > label > span:first-child,
.account-form-grid label > span:first-child,
.account-field > label { font-size: 13px; }
.account-row > a, .account-back, .account-link-button, .account-switch,
.remember, .password-rule, .account-status, .account-footer { font-size: 13px; }
.account-row > a, .account-switch a, .account-footer a, .account-footer button {
  display: inline-flex; align-items: center; min-height: 44px;
}
.account-footer nav { gap: 8px 16px; }
.account-view h1 { text-wrap: balance; }
@media (min-width: 821px) {
  .account-visual { position: sticky; top: 0; height: 100svh; min-height: 0; }
  .account-panel { gap: 24px; }
}
/* Explicit display rules must not reveal inactive views or gated account actions. */
[hidden] {
  display: none !important;
}
