:root {
  --ink: #253c32;
  --muted: #7b847e;
  --lime: #d9ed9c;
  --line: #e6e9e3;
  --paper: #fbfcf9;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8baa5e;
  outline-offset: 5px;
}
input:focus {
  outline: none;
  border-color: #6a8a52;
  box-shadow: 0 0 0 3px #d9ed9c55;
}
.auth-shell {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 100svh;
}
.story-panel {
  position: relative;
  overflow: hidden;
  background: #edf1e6;
  padding: 43px 10% 30px;
  display: flex;
  flex-direction: column;
  min-height: 780px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #e3f3ac;
  border-radius: 12px;
  font-size: 29px;
  line-height: 1;
  padding-bottom: 5px;
  font-family: Georgia, serif;
}
.brand-light {
  font-weight: 400;
  color: #82917f;
  font-size: 16px;
  letter-spacing: 0;
}
.story-copy {
  margin-top: 83px;
  z-index: 1;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 650;
}
.story-copy h1 {
  font-size: clamp(36px, 3.8vw, 58px);
  line-height: 1.5;
  letter-spacing: -2px;
  font-weight: 600;
  margin: 22px 0 19px;
}
.accent {
  color: #91ab64;
}
.story-copy p {
  font-size: 14px;
  color: #78866f;
  line-height: 1.9;
  letter-spacing: 0.6px;
}
.artwork {
  position: relative;
  height: 285px;
  margin-top: 16px;
}
.orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  left: calc(50% - 90px);
  top: 49px;
  background: radial-gradient(
    circle at 31% 23%,
    #eff8c2 0%,
    #d3e599 30%,
    #a2b87c 62%,
    #4b6a4e 100%
  );
  box-shadow: 24px 28px 40px #485e3d1b;
}
.orbit {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 330px;
  height: 120px;
  border: 1px solid #87966e66;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-32deg);
}
.orbit-two {
  width: 320px;
  height: 170px;
  transform: translate(-50%, -50%) rotate(39deg);
  border-color: #9ca78b55;
}
.spark {
  position: absolute;
  color: #72865e;
}
.spark-one {
  left: 10%;
  top: 14%;
  font-size: 40px;
}
.spark-two {
  right: 9%;
  bottom: 19%;
  font-size: 29px;
  font-weight: 200;
}
.art-label {
  position: absolute;
  bottom: 6px;
  left: 0;
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 1.8px;
  color: #7b876b;
}
.story-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #7a876c;
  padding-top: 24px;
}
.story-footer > span:last-child {
  font-size: 22px;
}
.form-panel {
  padding: 45px 9% 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.top-link {
  font-size: 12px;
  color: #91978e;
  text-align: right;
  white-space: nowrap;
}
.top-link a {
  color: var(--ink);
  margin-left: 14px;
  font-weight: 600;
}
.top-link a span {
  font-size: 16px;
}
.form-content {
  width: 100%;
  max-width: 380px;
  margin: auto;
  padding: 60px 0;
}
.section-kicker {
  font-size: 9px;
  letter-spacing: 1.5px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #78826f;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #84a45d;
  flex: none;
}
.form-content h2 {
  font-size: 36px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 22px 0 10px;
}
.heading-dot {
  color: #8ca860;
}
.form-description {
  font-size: 13px;
  line-height: 1.8;
  color: #969d92;
  margin: 0 0 35px;
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.label-note {
  font-size: 10px;
  color: #9aa18f;
  font-weight: 400;
}
input:not([type="hidden"]) {
  width: 100%;
  border: 1px solid #dfe4d9;
  background: #fff;
  border-radius: 8px;
  padding: 15px 16px;
  font-size: 13px;
  color: var(--ink);
  height: 50px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input::placeholder {
  color: #afb5a9;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 63px;
}
.reveal {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #86917c;
  font-size: 11px;
  padding: 8px 4px;
}
.primary-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #f5f8ec;
  padding: 16px 19px;
  font-size: 13px;
  font-weight: 550;
  margin-top: 28px;
  transition:
    background 0.2s,
    transform 0.2s;
  min-height: 51px;
}
.primary-button:hover {
  background: #365644;
}
.primary-button:active {
  transform: translateY(1px);
}
.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.primary-button > span:last-child {
  font-size: 19px;
}
.form-status {
  font-size: 11px;
  color: #7b847e;
  min-height: 16px;
  margin: 9px 0 0;
}
.form-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 20px;
  font-size: 10px;
  color: #a1a799;
  line-height: 1.6;
}
.form-footnote > span {
  font-size: 16px;
  color: #7c9471;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #a9afa3;
}
.alert {
  background: #fff2ed;
  color: #a74d36;
  font-size: 12px;
  border: 1px solid #edd4c9;
  border-radius: 8px;
  padding: 13px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.dashboard-shell {
  max-width: 1200px;
  margin: auto;
  padding: 32px 64px;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.text-button {
  border: 1px solid #dde3d7;
  border-radius: 7px;
  padding: 10px 15px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.dashboard-main {
  max-width: 900px;
  margin: 64px auto;
}
.dashboard-main > h1 {
  font-size: 40px;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
  font-weight: 550;
  margin: 18px 0 12px;
}
.dashboard-intro {
  color: #8a9481;
  font-size: 14px;
}
.welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  background: #eaf0dd;
  padding: 40px 46px;
  border-radius: 16px;
  margin: 38px 0 26px;
}
.welcome-card h2 {
  font-size: 32px;
  line-height: 1.6;
  font-weight: 550;
  margin: 18px 0 12px;
}
.welcome-card p {
  color: #7d8d6b;
  font-size: 12px;
}
.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fbf0;
  padding: 8px 13px;
  border-radius: 30px;
  font-size: 11px;
  margin-top: 15px;
}
.welcome-art {
  font-size: 220px;
  color: #9db575;
  line-height: 1;
  transform: rotate(15deg);
  margin-right: 20px;
}
.profile-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 32px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title h2 {
  font-size: 15px;
  margin: 0;
}
.card-title > span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #a0a995;
}
dl {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 23px;
  margin-bottom: 4px;
}
dt {
  font-size: 11px;
  color: #909c84;
  margin-bottom: 11px;
}
dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.dashboard-footer {
  display: flex;
  justify-content: space-between;
  color: #a0aa95;
  font-size: 9px;
  letter-spacing: 1px;
  padding-bottom: 10px;
}
.error-page {
  max-width: 480px;
  margin: 15vh auto;
  padding: 24px;
}
.error-page h1 {
  margin-top: 50px;
}
.error-page p {
  color: var(--muted);
  line-height: 1.8;
}
@media (min-width: 1500px) {
  .story-panel {
    padding-left: 17%;
    padding-right: 17%;
  }
  .form-panel {
    padding-left: 14%;
    padding-right: 14%;
  }
  .story-copy {
    margin-top: 100px;
  }
  .artwork {
    height: 320px;
  }
}
@media (max-width: 850px) {
  .auth-shell {
    grid-template-columns: 40% 60%;
  }
  .story-panel {
    padding: 30px 10%;
    min-height: 760px;
  }
  .story-copy h1 {
    font-size: 34px;
  }
  .story-copy p {
    font-size: 12px;
  }
  .orbit {
    width: 250px;
  }
  .orbit-two {
    width: 250px;
  }
  .orb {
    width: 140px;
    height: 140px;
    left: calc(50% - 70px);
    top: 70px;
  }
  .form-panel {
    padding: 35px 9% 25px;
  }
  .brand {
    font-size: 19px;
  }
  .brand-light {
    font-size: 13px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .dashboard-shell {
    padding: 25px 28px;
  }
}
@media (max-width: 600px) {
  .auth-shell {
    display: block;
    min-height: 100svh;
  }
  .story-panel {
    min-height: 0;
    padding: 24px;
    background: var(--paper);
  }
  .story-copy,
  .artwork,
  .story-footer {
    display: none;
  }
  .form-panel {
    padding: 4px 26px 24px;
    min-height: calc(100svh - 86px);
  }
  .top-link {
    font-size: 11px;
  }
  .form-content {
    padding: 50px 0 35px;
    max-width: 400px;
  }
  .form-content h2 {
    font-size: 32px;
  }
  .page-footer > span:last-child {
    display: block;
    font-size: 7px;
  }
  .form-description {
    margin-bottom: 30px;
  }
  .dashboard-shell {
    padding: 22px;
  }
  .dashboard-main {
    margin: 40px auto;
  }
  .dashboard-main > h1 {
    font-size: 30px;
  }
  .welcome-card {
    padding: 28px;
  }
  .welcome-card h2 {
    font-size: 27px;
  }
  .welcome-art {
    font-size: 100px;
    margin-right: -12px;
  }
  .welcome-card p {
    max-width: 160px;
    line-height: 1.8;
  }
  .profile-card {
    padding: 23px;
  }
  dl {
    grid-template-columns: 1fr;
  }
  .dashboard-footer span {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Final visual polish: a quiet canvas, clear contrast and restrained motion. */
@media (min-width: 851px) {
  body:has(.auth-shell) {
    background: #f5f6f0;
  }
  .auth-shell {
    padding: 16px;
    gap: 16px;
    grid-template-columns: 45% minmax(0, 1fr);
  }
  .story-panel {
    border-radius: 20px;
    min-height: calc(100svh - 32px);
    padding-top: 34px;
  }
  .form-panel {
    padding-top: 33px;
    padding-bottom: 18px;
  }
}
.story-panel {
  background-image:
    radial-gradient(ellipse at 10% 95%, #dce8c9 0, transparent 55%),
    linear-gradient(130deg, #edf1e6, #e9eedf);
}
.story-copy h1 {
  text-wrap: balance;
}
.story-copy p {
  color: #66735f;
}
.form-description {
  color: #727d6b;
}
.top-link {
  color: #6f7967;
}
.form-footnote {
  color: #707b65;
}
.field label {
  color: #35432e;
}
.label-note {
  color: #758168;
}
.reveal {
  color: #60734e;
}
.form-content {
  animation: arrive 0.65s ease both;
}
.form-content h2 {
  line-height: 1.4;
}
.field input:hover:not(:focus) {
  border-color: #b5c2a5;
}
.primary-button {
  box-shadow: 0 4px 10px #243c3212;
}
.primary-button:hover .button-arrow {
  transform: translate(2px, -2px);
}
.button-arrow {
  transition: transform 0.2s;
}
.is-loading .button-arrow {
  font-size: 0;
  width: 17px;
  height: 17px;
  border: 2px solid #ffffff55;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.floating-note {
  position: absolute;
  right: -7%;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 19px;
  border: 1px solid #ffffffb3;
  background: #ffffffe0;
  box-shadow: 0 12px 36px #354c3210;
  border-radius: 12px;
  transform: rotate(-5deg);
  font-size: 11px;
  letter-spacing: 0.5px;
}
.floating-note small {
  display: block;
  margin-top: 5px;
  color: #89917e;
  font-size: 8px;
  letter-spacing: 0.8px;
}
.note-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5efcc;
  font-size: 19px;
}
.orb {
  animation: float 8s ease-in-out infinite;
}
.spark-one {
  animation: slow-turn 40s linear infinite;
}
.password-hint {
  color: #758168;
  font-size: 11px;
  line-height: 1.7;
  margin: -9px 0 0;
}
.password-hint.is-ready {
  color: #54733a;
}
.welcome-card {
  position: relative;
  background-image: radial-gradient(
    circle at 80% 30%,
    #d6e6b6 0,
    transparent 50%
  );
}
.welcome-art {
  text-shadow: 12px 14px 0 #bdcf9e55;
}
.profile-card {
  box-shadow: 0 6px 24px #2f412204;
}
.text-button:hover {
  background: #eaf0df;
  border-color: #c9d6b6;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes slow-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 850px) {
  .floating-note {
    right: -15%;
    padding: 12px;
    font-size: 9px;
  }
}
@media (max-width: 600px) {
  .story-panel {
    background: var(--paper);
    border-bottom: 1px solid #e8eddf;
    margin-bottom: 22px;
    padding: 22px 26px;
  }
  .form-panel {
    min-height: calc(100svh - 105px);
  }
  input:not([type="hidden"]) {
    font-size: 16px;
  }
  .form-content {
    padding-top: 35px;
  }
  .form-content h2 {
    font-size: 34px;
  }
  .form-footnote {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 851px) and (max-height: 900px) {
  .story-copy { margin-top: 44px; }
  .story-copy h1 { font-size: clamp(36px, 3.5vw, 52px); line-height: 1.35; }
  .artwork { height: 240px; margin-top: 10px; }
}

.image-lightbox { width: min(1100px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 48px 12px 12px; border: 0; border-radius: 14px; background: #f8faf5; color: #27372d; overflow: auto; }
.image-lightbox::backdrop { background: rgba(12, 22, 17, .82); }
.image-lightbox img { display: block; width: auto; max-width: 100%; max-height: 80dvh; object-fit: contain; margin: auto; }
.image-lightbox img[hidden], .image-lightbox p[hidden] { display: none; }
.image-lightbox-close { position: absolute; top: 10px; right: 12px; padding: 8px 12px; border: 0; border-radius: 8px; background: #e5ecdd; color: #27372d; cursor: pointer; }
.image-lightbox p { text-align: center; padding: 30px; }
