:root {
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ink: #17202d;
  --muted: #667085;
  --orange: #d9612b;
  --orange-deep: #a93e18;
  --cream: #f7f2ea;
}

* { box-sizing: border-box; }

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

button,
input { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(420px, 0.92fr);
}

.login-story {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fffaf4;
  background:
    radial-gradient(circle at 18% 10%, rgba(250, 179, 92, 0.32), transparent 28%),
    radial-gradient(circle at 88% 90%, rgba(75, 124, 142, 0.28), transparent 30%),
    linear-gradient(145deg, #172b34 0%, #14232d 52%, #0d1a22 100%);
}

.login-story::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -180px;
  bottom: -190px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}

.story-mark,
.mobile-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 800;
  color: #1c2b32;
  background: linear-gradient(135deg, #ffd19f, #f29353);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.eyebrow,
.card-kicker {
  margin: 0 0 18px;
  color: #f4a25f;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .19em;
}

.login-story h1 {
  margin: 0;
  max-width: 760px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.story-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(255,250,244,.68);
  font-size: 15px;
  line-height: 1.8;
}

.story-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-points span {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(12px);
}

.login-card {
  padding: clamp(36px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(255,255,255,.58), rgba(255,255,255,.58)),
    var(--cream);
}

.mobile-mark { display: none; margin-bottom: 28px; }

.card-kicker { margin-bottom: 12px; color: var(--orange); }

.login-card h2 {
  margin: 0;
  font-size: clamp(28px, 2.2vw, 36px);
  letter-spacing: -.03em;
}

.card-copy {
  margin: 14px 0 34px;
  color: var(--muted);
  line-height: 1.7;
}

#auth-form { display: grid; gap: 20px; }

#auth-form label { display: grid; gap: 9px; }

#auth-form label > span {
  color: #384250;
  font-size: 13px;
  font-weight: 700;
}

#auth-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d4cec4;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#auth-form input:focus {
  border-color: #df7b4b;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(217,97,43,.12);
}

.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.password-field button {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: var(--orange-deep);
  background: transparent;
  cursor: pointer;
}

.auth-message {
  min-height: 20px;
  margin: -2px 0 0;
  color: #b42318;
  font-size: 13px;
}

.auth-message.is-info { color: #345466; }

.submit-button {
  height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 14px;
  color: white;
  font-weight: 750;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 15px 34px rgba(169,62,24,.22);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.submit-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }

.security-note {
  margin: 26px 0 0;
  color: #7a746c;
  font-size: 12px;
}

.security-note span { margin-right: 7px; color: #4f7b66; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-card { min-height: 100vh; padding: 36px clamp(22px, 9vw, 90px); }
  .mobile-mark { display: grid; }
}
