:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ink: #171a14;
  --muted: #767a70;
  --yellow: #ffe500;
  --green: #649b3d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f6f1;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 1.08fr) minmax(480px, .92fr);
}

.welcome-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 72px);
  background: var(--yellow);
  isolation: isolate;
}

.welcome-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .22;
  background-image:
    linear-gradient(rgba(23, 26, 20, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 20, .16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.welcome-brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(23, 26, 20, .18);
}

.welcome-brand strong,
.welcome-brand small {
  display: block;
}

.welcome-brand strong {
  font-size: 18px;
}

.welcome-brand small {
  margin-top: 3px;
  color: #6e6500;
  font-size: 12px;
}

.welcome-copy {
  max-width: 680px;
  margin: auto 0;
  padding: 80px 0;
}

.eyebrow,
.login-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.welcome-copy h1 {
  margin: 0;
  font-size: clamp(52px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.07em;
}

.welcome-description {
  max-width: 570px;
  margin: 32px 0 0;
  color: #514a00;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.8;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 13px;
  font-weight: 750;
}

.feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feature-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.orb {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(23, 26, 20, .16);
  border-radius: 50%;
}

.orb-one {
  width: 360px;
  height: 360px;
  right: -160px;
  top: 18%;
  box-shadow: inset 0 0 0 42px rgba(255, 255, 255, .12);
}

.orb-two {
  width: 190px;
  height: 190px;
  right: 18%;
  bottom: -96px;
  background: rgba(255, 255, 255, .14);
}

.form-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 84px);
}

.login-card {
  width: min(100%, 460px);
}

.mobile-brand {
  display: none;
}

.login-kicker {
  color: #988800;
}

.login-card h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -.05em;
}

.login-description {
  margin: 16px 0 38px;
  color: var(--muted);
  line-height: 1.7;
}

form > label {
  display: block;
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 800;
}

.input-shell {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 0 16px;
  border: 1px solid #dfe2d9;
  border-radius: 15px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input-shell:focus-within {
  border-color: #b9a800;
  box-shadow: 0 0 0 4px rgba(255, 229, 0, .17);
}

.input-symbol {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #f4f5ef;
  font-size: 12px;
  font-weight: 900;
}

input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

input::placeholder {
  color: #a8aca3;
}

.show-password {
  padding: 6px;
  border: 0;
  background: transparent;
  color: #817700;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.login-error {
  margin: -5px 0 17px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff0eb;
  color: #9b3e25;
  font-size: 13px;
}

.login-button {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 0;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(23, 26, 20, .16);
  transition: transform .18s ease, background .18s ease;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #292d24;
}

.login-button:disabled {
  cursor: wait;
  opacity: .7;
}

.login-button b {
  color: var(--yellow);
  font-size: 22px;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e1e4dc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.shield {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #e9f2e2;
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 860px) {
  .login-layout {
    display: block;
  }

  .welcome-panel {
    display: none;
  }

  .form-panel {
    padding: 34px 22px;
  }

  .mobile-brand {
    display: inline-flex;
    margin-bottom: 70px;
  }

  .mobile-brand .brand-mark {
    width: 42px;
    height: 42px;
  }

  .login-card h2 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
