/* One continuous village scene; opaque surfaces keep account tasks readable. */
.login-page {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  background: #222632;
  color: #f7eee0;
}
.login-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #292b36;
}
.scene-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}
.login-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #111925b8 0%, #141c285c 52%, #151b2624 100%),
    linear-gradient(180deg, #141b285c 0%, #151b2600 38%, #111925c9 100%);
}
.login-header {
  max-width: 1344px;
  margin: auto;
  padding: 27px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.login-header .brand {
  color: #fff6e9;
  font-size: 22px;
}
.login-header .brand small { color: #e7d4bf; }
.login-header .sigil { color: #edcf9a; }
.header-home {
  color: #f3e4d4;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 5px 0 5px 20px;
  border-left: 1px solid #ead2b447;
}
.login-layout {
  width: calc(100% - 128px);
  max-width: 1280px;
  min-height: calc(100vh - 190px);
  min-height: calc(100svh - 190px);
  margin: 0 auto;
  padding: 30px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center;
  gap: clamp(48px, 6vw, 100px);
}
.entry-panel {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 34px 36px 30px;
  border: 1px solid #ead9c6;
  border-top: 2px solid #d2b184;
  border-radius: 5px;
  background: #fffaf2f5;
  color: #302b2a;
  box-shadow: 0 22px 76px #0c132e40, 0 1px 0 #fff8 inset;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.entry-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #74604c;
  font-size: 11px;
  letter-spacing: .08em;
}
.entry-label > span {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a88751;
}
.entry-panel h1 {
  margin: 17px 0 12px;
  color: #422b31;
  font-size: 35px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .04em;
}
.entry-intro {
  color: #766a5d;
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}
.login-page #login-submit {
  border-radius: 4px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.login-page #login-submit:not(:disabled):hover { box-shadow: 0 5px 18px #65303924; }
.scope-note {
  margin: 21px 0 0;
  padding-top: 16px;
  border-top: 1px solid #ded1be;
  font-size: 11px;
  line-height: 1.9;
  color: #746757;
}
.login-scene {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  color: #fff4e5;
}
.scene-content { max-width: 600px; }
.scene-kicker {
  margin: 0 0 19px;
  font-size: 11px;
  letter-spacing: .22em;
  color: #f1d9ad;
}
.scene-content h2 {
  font-size: clamp(37px, 3.7vw, 53px);
  font-weight: 500;
  line-height: 1.44;
  letter-spacing: .035em;
  text-shadow: 0 3px 22px #10182c40;
}
.scene-description {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.95;
  color: #f1e4d6;
  text-shadow: 0 1px 10px #10182c66;
}
.login-art {
  position: relative;
  width: 310px;
  max-width: 100%;
  height: 198px;
  margin: 30px 0 0;
}
.login-art img {
  position: absolute;
  width: 37%;
  height: auto;
  top: 23px;
  border: 1px solid #d1b586b3;
  border-radius: 3px;
  box-shadow: 0 12px 25px #10152666;
}
.login-art img:nth-child(1) { left: 3%; transform: rotate(-12deg); }
.login-art img:nth-child(2) { left: 31.5%; top: 4px; z-index: 2; }
.login-art img:nth-child(3) { right: 3%; transform: rotate(12deg); }
.scene-caption {
  width: 310px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #f2dfc2;
  font-size: 10px;
  letter-spacing: .05em;
}
.experience-scope {
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid #ead8c33d;
}
.experience-scope > strong {
  color: #f9ecdb;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
}
.experience-steps {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.experience-steps li { min-width: 0; }
.experience-steps li > span {
  display: block;
  margin-bottom: 7px;
  color: #eed2a6;
  font: 13px Georgia, serif;
}
.experience-steps b { color: #fff4e6; font-size: 12px; font-weight: 500; }
.experience-steps p {
  margin: 5px 0 0;
  color: #ebdfd2;
  font-size: 11px;
  line-height: 1.85;
}
.login-footer {
  width: calc(100% - 128px);
  max-width: 1280px;
  margin: auto;
  padding: 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  border-top: 1px solid #ead8c333;
  color: #e7d8c7;
  font-size: 10px;
  letter-spacing: .09em;
}
@media (max-width: 1150px) and (min-width: 801px) {
  .login-layout {
    width: calc(100% - 80px);
    grid-template-columns: minmax(0, 1fr) minmax(335px, 390px);
    gap: 38px;
  }
  .entry-panel { padding: 31px 29px 27px; }
  .scene-content h2 { font-size: 37px; }
  .scene-description { font-size: 13px; }
  .experience-steps { gap: 13px; }
  .login-footer { width: calc(100% - 80px); }
}
@media (max-width: 800px) {
  .login-header { padding: 22px 26px; }
  .login-header .brand { font-size: 20px; }
  .login-header .sigil { font-size: 37px; }
  .header-home { padding-left: 0; border-left: 0; font-size: 11px; }
  .login-layout {
    width: min(calc(100% - 40px), 560px);
    min-height: 0;
    margin: 14px auto 0;
    padding: 0 0 35px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 46px;
  }
  .entry-panel { padding: 31px 34px 28px; }
  .entry-panel h1 { margin-top: 15px; font-size: 33px; }
  .login-scene { padding: 0 10px 8px; }
  .scene-content h2 { font-size: 39px; }
  .scene-description { font-size: 13px; }
  .login-art { margin-top: 27px; }
  .scene-backdrop { object-position: 65% center; }
  .login-footer { width: calc(100% - 52px); font-size: 9px; }
}
@media (max-width: 420px) {
  .login-header { padding: 20px; gap: 12px; }
  .login-header .brand { font-size: 18px; gap: 8px; }
  .login-header .brand small { font-size: 7px; letter-spacing: 1.5px; }
  .login-header .sigil { font-size: 33px; }
  .header-home { font-size: 10px; letter-spacing: 0; }
  .login-layout { width: calc(100% - 28px); margin-top: 10px; gap: 37px; }
  .entry-panel { padding: 27px 24px 25px; }
  .entry-label { font-size: 10px; }
  .entry-intro { font-size: 12px; }
  .scope-note { font-size: 11px; }
  .login-scene { padding-inline: 10px; }
  .scene-kicker { font-size: 10px; letter-spacing: .15em; }
  .scene-content h2 { font-size: clamp(29px, 9vw, 35px); }
  .login-art { width: 280px; height: 181px; }
  .scene-caption { width: 280px; font-size: 9px; }
  .experience-steps { grid-template-columns: 1fr; gap: 15px; }
  .experience-steps li { display: flex; align-items: baseline; gap: 15px; }
  .experience-steps li > span { flex: 0 0 20px; margin: 0; }
  .experience-steps p { margin-top: 3px; }
  .login-footer { width: calc(100% - 40px); letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .login-page { scroll-behavior: auto; }
  .login-page #login-submit { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .entry-panel { background: #fffaf2; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
