:root {
  color: #17213a;
  background: #f5f8ff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 6%, rgba(116, 151, 255, .16), transparent 30rem),
    radial-gradient(circle at 92% 92%, rgba(80, 199, 185, .14), transparent 28rem),
    #f6f8fd;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.shell {
  display: grid;
  grid-template-columns: minmax(28rem, 1.05fr) minmax(30rem, .95fr);
  min-height: 100vh;
}

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.75rem);
  color: #fff;
  background:
    linear-gradient(150deg, rgba(17, 41, 111, .96), rgba(31, 80, 171, .93) 55%, rgba(36, 142, 163, .9)),
    #173b85;
}

.intro::before,
.intro::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  content: "";
}
.intro::before { width: 33rem; height: 33rem; top: -17rem; right: -15rem; }
.intro::after { width: 24rem; height: 24rem; right: -8rem; bottom: -11rem; }

.brand,
.mobile-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: .85rem;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px rgba(255,255,255,.18);
}
.brand-mark svg { width: 1.75rem; fill: #fff; }
.brand-mark .brand-arrow { fill: #2a65c7; }

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 35rem;
  margin: auto 0 3.5rem;
}
.eyebrow {
  margin: 0 0 1.15rem;
  color: #a8d8ff;
  font-size: .74rem;
  font-weight: 760;
  letter-spacing: .18em;
}
h1 {
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  font-weight: 720;
  letter-spacing: -.065em;
  line-height: .98;
}
.lead {
  max-width: 31rem;
  margin: 1.75rem 0 0;
  color: rgba(237, 246, 255, .76);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
}

.feature-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.feature {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(8px);
}
.feature-icon {
  display: grid;
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: .55rem;
  color: #bcecff;
  background: rgba(174, 229, 255, .12);
  font-size: .68rem;
  font-weight: 750;
}
.feature strong, .feature span { display: block; }
.feature strong { margin: .05rem 0 .3rem; font-size: .83rem; }
.feature div span { color: rgba(232,244,255,.64); font-size: .7rem; line-height: 1.5; }

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem clamp(2rem, 7vw, 7rem) 1.5rem;
}

.login-card { width: 100%; max-width: 28rem; margin: auto; }
.mobile-brand { display: none; color: #214686; }
.mobile-brand .brand-mark { background: #eaf1ff; border-color: #dce7fb; }
.mobile-brand .brand-mark.small { width: 2.2rem; height: 2.2rem; }
.mobile-brand .brand-mark svg { fill: #2d62bf; }
.mobile-brand .brand-mark .brand-arrow { fill: #fff; }

.welcome {
  margin: 0 0 .65rem;
  color: #2f69c9;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .08em;
}
h2 { margin: 0; color: #16213b; font-size: 2rem; letter-spacing: -.045em; }
.subtext { margin: .75rem 0 2.2rem; color: #7c879e; font-size: .93rem; }

label { display: inline-block; margin: 0 0 .55rem; color: #3a465e; font-size: .82rem; font-weight: 680; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.25rem; }
.label-row label { margin-bottom: .55rem; }
.field {
  display: flex;
  align-items: center;
  gap: .7rem;
  height: 3.35rem;
  padding: 0 .95rem;
  border: 1px solid #dce2ed;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(35,52,87,.025);
  transition: border-color .18s, box-shadow .18s;
}
.field:focus-within { border-color: #5d86d6; box-shadow: 0 0 0 3px rgba(69,111,197,.11); }
.field > svg, .reveal svg { width: 1.1rem; fill: none; stroke: #8e9ab0; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.field input { min-width: 0; flex: 1; border: 0; outline: 0; color: #1e2940; background: transparent; font-size: .91rem; }
.field input::placeholder { color: #aab3c3; }

.text-button, .reveal { border: 0; color: #4372c7; background: transparent; cursor: pointer; }
.text-button { padding: 0; font-size: .78rem; }
.reveal { display: grid; padding: .25rem; place-items: center; border-radius: .4rem; }
.reveal:hover { background: #f1f5fc; }

.message { min-height: 1.3rem; margin: .85rem 0 .35rem; color: #c54752; font-size: .8rem; }
.message.info { color: #5c6c88; }
.primary {
  width: 100%;
  height: 3.35rem;
  border: 0;
  border-radius: .85rem;
  color: #fff;
  background: linear-gradient(135deg, #2b62c0, #397bd5);
  box-shadow: 0 10px 24px rgba(39,94,186,.2);
  cursor: pointer;
  font-size: .92rem;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(39,94,186,.24); }
.primary:active { transform: translateY(0); }
.primary:disabled { cursor: wait; opacity: .72; }

.divider { display: flex; align-items: center; gap: .9rem; margin: 1.7rem 0 1.2rem; color: #a0a9b9; font-size: .68rem; }
.divider::before, .divider::after { height: 1px; flex: 1; background: #e3e8f0; content: ""; }
.notice { margin: 0; color: #8490a5; text-align: center; font-size: .74rem; }
.notice span { margin-right: .35rem; color: #39a876; font-size: .6rem; }

footer { display: flex; justify-content: center; gap: .55rem; margin: 2.5rem 0 0; color: #a1aaba; font-size: .68rem; }

@media (max-width: 960px) {
  .shell { display: block; }
  .intro { display: none; }
  .login-panel { padding: 2rem 1.5rem 1.25rem; }
  .mobile-brand { display: inline-flex; margin-bottom: 3.5rem; }
}

@media (max-width: 480px) {
  .login-panel { justify-content: flex-start; }
  .login-card { margin-top: 1rem; }
  .mobile-brand { margin-bottom: 3rem; }
  h2 { font-size: 1.75rem; }
}

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