@font-face {
  font-family: Onest;
  src: url("/assets/OnestVariable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Onest, system-ui, sans-serif;
  color: #f1f6ee;
  background: #101815;
  --lime: #c1f681;
  --secondary: #a3b3a9;
  --surround: clamp(12px, 1.5vw, 26px);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.signin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.09fr) minmax(0, .91fr);
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--surround);
}

.landscape {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  min-height: 615px;
  padding: clamp(29px, 3.65vw, 76px);
  border: 1px solid #79948150;
  border-radius: clamp(20px, 2vw, 34px);
  background:
    linear-gradient(180deg, #092321b8 0%, #1033300d 36%, #09272125 52%, #0a211dd9 84%, #0a231ff5 100%),
    url("/assets/forest.jpg") 62% 50% / cover;
}

.wordmark, .landscape-caption { position: relative; z-index: 2; }
.wordmark { display: flex; align-items: center; gap: 11px; width: fit-content; }
.wordmark img { display: block; width: 38px; height: 38px; object-fit: contain; }
.wordmark span { font-size: 25px; font-weight: 690; letter-spacing: -.065em; line-height: 1; }
.wordmark em { color: #d0efc2; font-style: normal; font-weight: 445; }

.landscape-caption h2 {
  margin: 0;
  color: #f3faeb;
  font-size: clamp(55px, 5.45vw, 99px);
  font-weight: 540;
  letter-spacing: -.075em;
  line-height: .99;
}
.landscape-caption p {
  max-width: 355px;
  margin: 21px 0 0;
  font-size: clamp(15px, 1.12vw, 20px);
  line-height: 1.52;
  color: #d0e2d4;
}

.vault-art {
  position: absolute;
  z-index: 1;
  left: 53%;
  top: 41%;
  width: min(56%, 365px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid #ddffe328;
  border-radius: 50%;
  transform: rotate(-24deg) scale(1, .85);
}
.orbit-inner { inset: 7%; border-color: #ddffe31d; }
.vault-folder {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 57%;
  aspect-ratio: 1.39;
  transform: translate(-50%, -50%) rotate(-9deg);
  filter: drop-shadow(0 15px 15px #001e2580);
}
.folder-back, .folder-sheet, .folder-cover, .folder-lock { position: absolute; }
.folder-back {
  inset: 0 3% 0 0;
  border-radius: 8% 8% 9% 9%;
  clip-path: polygon(0 0, 33% 0, 44% 14%, 100% 14%, 100% 100%, 0 100%);
  background: linear-gradient(142deg, #e0f2c8 0%, #81b9a1 37%, #487b69 95%);
}
.folder-sheet {
  width: 79%;
  height: 61%;
  left: 9%;
  bottom: 16%;
  border: 1px solid #edffdfab;
  border-radius: 7%;
}
.sheet-back { transform: translate(4%, -20%) rotate(7deg); background: #b1cdab; }
.sheet-front { transform: translate(0, -12%) rotate(1deg); background: linear-gradient(135deg, #d9e7c8, #a6c8b3); }
.folder-cover {
  inset: 31% -2% 0 0;
  border: 1px solid #e2f5d2a6;
  border-radius: 9% 9% 10% 10% / 14% 14% 16% 16%;
  background: linear-gradient(124deg, #d4ead3f2 0%, #a9d5bded 45%, #70a891ed 100%);
  box-shadow: inset 0 1px 1px #ffffffa8, inset 0 -5px 12px #497a6945;
  transform: skewX(-8deg);
  transform-origin: center bottom;
}
.folder-lock {
  right: -8%;
  bottom: -9%;
  display: grid;
  place-items: center;
  width: 29%;
  aspect-ratio: 1;
  border: 1px solid #f0ffc8;
  border-radius: 34%;
  background: linear-gradient(145deg, #e3ffae, #a9d879);
  color: #254e3a;
  box-shadow: 0 4px 10px #1935263b;
  transform: rotate(9deg);
}
.folder-lock svg { width: 48%; height: 48%; }

.signin-area {
  display: grid;
  place-items: center;
  padding: 56px clamp(24px, 4.5vw, 92px);
}
.signin-panel { width: 100%; max-width: 396px; }
.signin-panel h1 {
  margin: 0;
  font-size: clamp(37px, 3.3vw, 55px);
  font-weight: 560;
  letter-spacing: -.07em;
  line-height: 1.08;
}
.signin-panel header p {
  margin: 14px 0 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.55;
}
#login-form { margin-top: 38px; }
.form-field + .form-field { margin-top: 21px; }
.form-field label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 550; }
.control { display: flex; position: relative; align-items: center; }
.control-icon, .visibility-button svg, .browser-check svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.control-icon {
  position: absolute;
  width: 19px;
  height: 19px;
  left: 16px;
  color: #9bb1a3;
  pointer-events: none;
}
.control input {
  width: 100%;
  height: 53px;
  padding: 0 16px 0 47px;
  border: 1px solid #3a4a40;
  border-radius: 11px;
  outline: 0;
  background: #17221c;
  color: #f1f6ee;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
#login-pass { padding-right: 51px; }
.control input::placeholder { color: #93a497; opacity: 1; }
.control input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px #c1f68121; }
.control input[aria-invalid="true"] { border-color: #edaa9e; }
.visibility-button {
  position: absolute;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aafa1;
}
.visibility-button:hover { color: #eff6ea; }
.visibility-button svg { width: 19px; height: 19px; }
.visibility-slash { display: none; }
.visibility-button[aria-pressed="true"] .visibility-slash { display: block; }
.visibility-button:focus-visible, .submit-button:focus-visible { outline: 2px solid #e5ffca; outline-offset: 3px; }
.login-status { margin: 16px 0 0; color: #ffc3b8; font-size: 14px; line-height: 1.5; }
.login-status:empty { display: none; }
.submit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 53px;
  margin-top: 26px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--lime);
  color: #192918;
  font-size: 16px;
  font-weight: 640;
  transition: background-color .15s, transform .15s;
}
.submit-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  transform: rotate(45deg);
}
.submit-button:hover:enabled { background: #d4ffa0; }
.submit-button:active:enabled { transform: translateY(1px); }
.submit-button:disabled { opacity: .69; cursor: wait; }
.browser-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 19px 0 0;
  color: #aabaae;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}
.browser-check svg { flex: 0 0 15px; width: 15px; height: 15px; color: #b4cead; }
.control:focus-within .control-icon { color: var(--lime); }

@keyframes signin-arrive {
  from { opacity: .55; translate: 0 9px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes folder-arrive {
  from { opacity: .35; translate: 0 14px; rotate: -4deg; }
  to { opacity: 1; translate: 0 0; rotate: 0deg; }
}
@keyframes lock-settle {
  from { opacity: 0; scale: .75; }
  70% { scale: 1.06; }
  to { opacity: 1; scale: 1; }
}
@keyframes shield-trace {
  from { stroke-dashoffset: 14; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .vault-folder { animation: folder-arrive 560ms cubic-bezier(.2,.7,.22,1) both; }
  .folder-lock { animation: lock-settle 320ms 175ms ease-out backwards; }
  .landscape-caption, .signin-panel { animation: signin-arrive 380ms ease-out; }
  .control-icon, .visibility-button { transition: color 150ms; }
  .submit-button::after { transition: translate 180ms ease-out; }
  .submit-button:focus-visible::after { translate: 3px 0; }
  #login-form:has(.submit-button:disabled) .browser-check svg path:last-child {
    stroke-dasharray: 14;
    animation: shield-trace 450ms ease-out;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .submit-button:hover:enabled::after { translate: 3px 0; }
}

@media (max-width: 800px) {
  .signin-layout { display: block; padding: 12px; }
  .landscape { min-height: 0; height: clamp(174px, 32vw, 242px); padding: 22px 26px; background-position: center, 55% 58%; }
  .wordmark { gap: 8px; }
  .wordmark img { width: 28px; height: 28px; }
  .wordmark span { font-size: 20px; }
  .vault-art { left: auto; right: -2%; top: 50%; width: min(33%, 205px); transform: translateY(-50%); }
  .landscape-caption { max-width: 73%; }
  .landscape-caption h2 { font-size: clamp(26px, 4.4vw, 37px); letter-spacing: -.055em; line-height: 1.07; }
  .hero-break { display: none; }
  .landscape-caption p { max-width: 335px; font-size: 13px; margin-top: 8px; line-height: 1.4; }
  .signin-area { padding: 38px 16px 30px; }
  .signin-panel { max-width: 410px; }
  #login-form { margin-top: 26px; }
}

@media (max-width: 430px) {
  .signin-layout { padding: 9px; }
  .landscape { height: 164px; padding: 16px 18px; border-radius: 16px; }
  .landscape-caption { max-width: 74%; }
  .landscape-caption h2 { font-size: clamp(22px, 6.4vw, 27px); }
  .vault-art { right: -5%; width: 38%; }
  .signin-area { padding: 31px 12px 22px; }
  .signin-panel h1 { font-size: 35px; }
  .signin-panel header p { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .submit-button:active:enabled { transform: none; }
}
@media (forced-colors: active) {
  .submit-button, .control input { border-color: ButtonText; }
}
