:root {
  color-scheme: light;
  --ink: #102126;
  --muted: #617176;
  --paper: #f4f1e9;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(16, 33, 38, 0.14);
  --accent: #de5e3d;
  --accent-dark: #b53f25;
  --mint: #9ed2c4;
  --shadow: 0 30px 90px rgba(24, 45, 48, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 13% 17%, rgba(158, 210, 196, 0.5), transparent 27%),
    radial-gradient(circle at 88% 85%, rgba(222, 94, 61, 0.17), transparent 28%),
    var(--paper);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  border: 1px solid rgba(16, 33, 38, 0.08);
  border-radius: 50%;
  content: "";
}

body::before {
  width: 360px;
  height: 360px;
  top: -170px;
  right: 12%;
}

body::after {
  width: 520px;
  height: 520px;
  bottom: -360px;
  left: -100px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  padding: 30px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px 5px 12px 5px;
  color: white;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--mint);
}

.demo-badge {
  padding: 8px 12px;
  border: 1px solid rgba(181, 63, 37, 0.3);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  gap: clamp(54px, 8vw, 120px);
  align-items: center;
  padding: 44px 0 64px;
}

.intro {
  max-width: 590px;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.intro h1 {
  margin: 18px 0 24px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(52px, 7.6vw, 94px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.intro-copy {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.feature-list {
  max-width: 520px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.feature-index {
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px 12px 34px 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.login-card::before {
  position: absolute;
  width: 125px;
  height: 125px;
  top: -80px;
  right: -58px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.safety-note {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 30px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #6f391f;
  background: #fff0d8;
  font-size: 12px;
  font-weight: 700;
}

.safety-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(222, 94, 61, 0.14);
}

.card-heading h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.card-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

form {
  margin-top: 30px;
}

label,
.label-row > span {
  font-size: 13px;
  font-weight: 740;
}

.label-row {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

.label-row > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.input-wrap {
  position: relative;
  margin-top: 9px;
}

input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #899498;
}

input:focus {
  border-color: rgba(222, 94, 61, 0.7);
  background: white;
  box-shadow: 0 0 0 4px rgba(222, 94, 61, 0.1);
}

.password-wrap input {
  padding-right: 70px;
}

.reveal-button {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
}

.reveal-button:hover,
.reveal-button:focus-visible {
  background: rgba(222, 94, 61, 0.1);
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: #78878a;
  font-size: 11px;
}

.submit-button {
  width: 100%;
  height: 56px;
  margin-top: 28px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 25px rgba(16, 33, 38, 0.2);
  cursor: pointer;
  font-weight: 780;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  background: #1a353b;
  box-shadow: 0 16px 30px rgba(16, 33, 38, 0.24);
}

.submit-button:active {
  transform: translateY(0);
}

.privacy-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.demo-message {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(41, 121, 91, 0.2);
  border-radius: 12px;
  color: #174a37;
  background: #e9f7f1;
}

.demo-message[hidden] {
  display: none;
}

.message-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #29795b;
  font-weight: 900;
}

.demo-message strong,
.demo-message p {
  margin: 0;
}

.demo-message p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}

footer {
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 860px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 24px;
  }

  .intro {
    max-width: 680px;
  }

  .intro h1 {
    font-size: clamp(52px, 12vw, 78px);
  }

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

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    padding: 20px 0;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .demo-badge {
    padding: 7px 9px;
    font-size: 9px;
  }

  .login-layout {
    gap: 36px;
    padding: 34px 0 46px;
  }

  .intro h1 {
    font-size: 52px;
  }

  .intro-copy {
    font-size: 14px;
  }

  .feature-list {
    margin-top: 30px;
  }

  .login-card {
    padding: 26px 20px 24px;
    border-radius: 24px 9px 24px 9px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
