.header-account {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex-shrink: 0;
}
.account-link {
  font-size: 13px;
  font-weight: 600;
  padding: 12px 0;
  white-space: nowrap;
}
.register-cta {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.register-cta:hover {
  background: #315e48;
  color: white;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  padding-block: 54px 72px;
  align-items: start;
}
.auth-story {
  position: relative;
  overflow: hidden;
  border-radius: 8px 80px 8px 8px;
  min-height: 720px;
  background: #284b3d;
  color: #fff9e9;
}
.auth-story > img {
  position: absolute;
  width: 100%;
  height: 68%;
  inset: 0;
  object-fit: cover;
  object-position: 55% center;
}
.auth-story:after {
  content: "";
  position: absolute;
  inset: 20% 0 0;
  background: linear-gradient(transparent, #284b3d 64%);
  pointer-events: none;
}
.auth-story-copy {
  position: absolute;
  bottom: 55px;
  left: 10%;
  right: 8%;
  z-index: 1;
}
.auth-story-copy > span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #e0d8bc;
}
.auth-story-copy h2 {
  font-size: clamp(27px, 2.6vw, 38px);
  font-family: var(--serif);
  line-height: 1.65;
  margin: 22px 0 18px;
  font-weight: 500;
  color: inherit;
}
.auth-story-copy p {
  color: #e0e5d9;
  line-height: 2;
  font-size: 14px;
}
.auth-image-label {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 2;
  font-size: 10px;
  color: white;
  background: #203e346e;
  border-radius: 30px;
  padding: 5px 10px;
}
.auth-panel {
  max-width: 440px;
  width: 100%;
  padding-top: 14px;
  min-width: 0;
}
.auth-panel h1 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.5;
  margin: 12px 0;
  letter-spacing: -0.7px;
}
.auth-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.auth-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  margin: 28px 0 25px;
}
.auth-tabs a {
  padding: 0 3px 12px;
  font-size: 15px;
  color: var(--muted);
}
.auth-tabs [aria-current] {
  border-bottom: 3px solid var(--orange);
  color: var(--ink);
  font-weight: 650;
  margin-bottom: -1px;
}
.auth-panel .field {
  margin: 0 0 8px;
  font-size: 13px;
  gap: 8px;
}
.auth-panel input:not([type="checkbox"]) {
  width: 100%;
  background: var(--white);
  border: 1px solid #cad1c4;
  border-radius: 9px;
  padding: 13px 14px;
  min-height: 49px;
  font-size: 15px;
  color: var(--ink);
  box-sizing: border-box;
}
.field-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 21px;
  line-height: 1.8;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 62px !important;
}
.password-field button {
  background: transparent;
  border: 0;
  position: absolute;
  right: 8px;
  top: 4px;
  min-height: 41px;
  padding: 0 10px;
  font-size: 12px;
  color: #53664f;
  border-radius: 5px;
}
.auth-panel .confirm-password {
  margin-top: 20px;
}
.auth-consent {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.8;
  align-items: flex-start;
}
.auth-consent input {
  margin-top: 4px;
  flex-shrink: 0;
}
.auth-consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-error {
  font-size: 12px;
  line-height: 1.8;
  color: #a83d2c;
  margin: 12px 0;
  min-height: 8px;
}
.auth-storage-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}
.auth-storage-note .icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: #6b7b64;
}
.auth-storage-note p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}
.auth-help {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin: 8px 0 16px;
}
.auth-browse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.auth-browse .icon {
  width: 15px;
}
.account-page {
  max-width: 680px;
  margin: 20px auto 60px;
}
.account-page > h1 {
  font-size: 32px;
  margin-bottom: 30px;
}
.account-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  align-items: center;
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e4e9dc;
  font-family: var(--serif);
  font-size: 27px;
  flex-shrink: 0;
}
.account-card h2 {
  font-size: 22px;
  overflow-wrap: anywhere;
  margin: 0 0 6px;
}
.account-card p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.account-details {
  padding: 32px 0;
}
.account-details h2 {
  font-size: 22px;
}
.account-details p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 1100px) {
  .header-account {
    gap: 12px;
  }
  .header-inner {
    gap: 18px;
  }
  .top-nav {
    gap: 18px;
  }
  .auth-layout {
    gap: 5%;
  }
}
@media (max-width: 800px) {
  .auth-layout {
    display: block;
    max-width: 500px;
    padding-top: 30px;
    padding-bottom: 45px;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    margin: auto;
    max-width: none;
    padding: 0;
  }
  .auth-panel h1 {
    font-size: 29px;
  }
  .auth-tabs {
    margin-top: 25px;
  }
  .auth-panel input:not([type="checkbox"]) {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .header-account {
    gap: 12px;
  }
  .header-account .header-cta {
    display: inline-flex;
    padding: 8px 14px;
    min-height: 38px;
    font-size: 12px;
  }
  .header-account .header-cta .icon {
    display: none;
  }
  .header-account .account-link {
    font-size: 12px;
  }
  .header-inner {
    padding-inline: 18px;
    gap: 8px;
  }
  .header .brand > span {
    font-size: 18px;
    letter-spacing: 1px;
  }
  .header .brand img {
    width: 27px;
    height: 27px;
  }
  .header .brand {
    gap: 7px;
  }
  .auth-layout {
    width: calc(100% - 40px);
  }
  .account-card {
    padding: 20px;
    gap: 15px;
  }
}
@media (max-width: 360px) {
  .header-inner {
    padding-inline: 12px;
  }
  .header .brand > span {
    font-size: 16px;
  }
  .header .brand small {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .header-account {
    gap: 9px;
  }
  .header-account .header-cta {
    padding-inline: 11px;
  }
  .auth-panel h1 {
    font-size: 25px;
  }
}
