:root {
  --login-ink: #16213a;
  --login-muted: #77839b;
  --login-primary: #5b5ce2;
  --login-primary-deep: #4446c9;
  --login-line: #e7ebf3;
  --login-panel: #f4f7ff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--login-ink);
  background: #f6f8fd;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(430px, .88fr);
  overflow: hidden;
}

.brand-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 46px 56px;
  background:
    radial-gradient(circle at 67% 32%, rgba(255,255,255,.96) 0 12%, rgba(255,255,255,0) 42%),
    radial-gradient(circle at 8% 4%, rgba(191,218,255,.72), transparent 36%),
    linear-gradient(145deg, #edf4ff 0%, #f8fbff 48%, #eef5ff 100%);
}

.brand-stage::before,
.brand-stage::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(103, 131, 193, .1);
  transform: rotate(-9deg);
  pointer-events: none;
}

.brand-stage::before {
  width: 760px;
  height: 760px;
  left: -280px;
  bottom: -560px;
  border-radius: 120px;
  box-shadow: 190px -110px 0 rgba(255,255,255,.22), 390px -230px 0 rgba(208,222,250,.18);
}

.brand-stage::after {
  width: 560px;
  height: 420px;
  right: -370px;
  top: 80px;
  border-radius: 90px;
}

.brand-lockup {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -.5px;
}

.peach-logo {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 17px 17px 19px 19px;
  background: linear-gradient(145deg, #ff9d87, #ff705f);
  box-shadow: 0 10px 24px rgba(255, 112, 95, .24);
}

.peach-logo::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 10px;
  top: -4px;
  left: 23px;
  border-radius: 14px 2px 14px 2px;
  background: #60b881;
  transform: rotate(-20deg);
}

.peach-logo::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 24px;
  left: 21px;
  top: 10px;
  border-radius: 2px;
  background: rgba(255,255,255,.72);
  transform: rotate(9deg);
}

.brand-hero {
  position: relative;
  z-index: 2;
  width: min(680px, 82%);
  margin: clamp(84px, 13vh, 150px) auto 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 13px;
  border: 1px solid rgba(91,92,226,.12);
  border-radius: 999px;
  color: #6066ac;
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #6d6ee8; box-shadow: 0 0 0 5px rgba(109,110,232,.1); }

.brand-hero h1 {
  margin: 0;
  font-size: clamp(42px, 4.2vw, 70px);
  line-height: 1.16;
  letter-spacing: -3px;
  font-weight: 790;
}

.brand-hero h1 em {
  color: var(--login-primary);
  font-style: normal;
}

.brand-hero p {
  max-width: 580px;
  margin: 25px 0 0;
  color: #76839c;
  font-size: 17px;
  line-height: 1.85;
}

.product-visual {
  position: relative;
  z-index: 2;
  width: min(620px, 78%);
  height: 250px;
  margin: 42px auto 0;
}

.visual-board {
  position: absolute;
  inset: 20px 82px 0 70px;
  border: 1px solid rgba(127,143,181,.18);
  border-radius: 21px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 34px 70px rgba(89,111,160,.15);
  backdrop-filter: blur(16px);
  transform: perspective(900px) rotateX(3deg) rotateY(-5deg);
}

.board-top { height: 42px; border-bottom: 1px solid #edf0f6; display: flex; align-items: center; gap: 6px; padding: 0 16px; }
.board-dot { width: 7px; height: 7px; border-radius: 50%; background: #d8deea; }
.board-body { display: grid; grid-template-columns: 82px 1fr; height: calc(100% - 42px); }
.board-nav { border-right: 1px solid #edf0f6; padding: 17px 13px; }
.board-nav i { display: block; height: 7px; margin-bottom: 13px; border-radius: 5px; background: #edf0f7; }
.board-nav i:first-child { background: #dcdcff; }
.board-content { padding: 18px; }
.board-title { width: 44%; height: 11px; border-radius: 5px; background: #dfe4ef; margin-bottom: 18px; }
.board-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.board-card { height: 53px; border: 1px solid #edf0f6; border-radius: 9px; background: linear-gradient(145deg,#fff,#f8f9fd); }
.board-chart { height: 61px; margin-top: 11px; border-radius: 9px; background: linear-gradient(180deg,rgba(109,110,232,.12),rgba(109,110,232,.02)); clip-path: polygon(0 72%,12% 58%,24% 70%,37% 32%,51% 47%,64% 21%,79% 42%,100% 8%,100% 100%,0 100%); }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(128,143,180,.15);
  border-radius: 12px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 16px 34px rgba(80,103,150,.14);
  color: #59667f;
  font-size: 12px;
}

.float-chip b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #fff; background: var(--login-primary); font-size: 13px; }
.chip-one { left: 2px; top: 68px; }
.chip-two { right: 1px; top: 7px; }
.chip-two b { background: #ff8b77; }
.chip-three { right: 20px; bottom: 17px; }
.chip-three b { background: #55b985; }

.stage-footer {
  position: absolute;
  z-index: 2;
  left: 56px;
  bottom: 28px;
  color: #99a4b8;
  font-size: 12px;
}

.login-side {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(38px, 4.7vw, 86px);
  background:
    radial-gradient(circle at 90% 7%, rgba(215,224,255,.75), transparent 32%),
    var(--login-panel);
  box-shadow: -14px 0 50px rgba(50,70,120,.045);
}

.mobile-brand { display: none; }

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

.login-kicker { margin: 0 0 8px; color: var(--login-primary); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; }
.login-card h2 { margin: 0; font-size: 34px; line-height: 1.3; letter-spacing: -1.2px; }
.login-intro { margin: 13px 0 34px; color: var(--login-muted); line-height: 1.7; }

.login-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 7px;
  border-radius: 13px;
  background: #e9eefb;
}

.login-mode strong { width: 58%; padding: 12px 16px; border-radius: 9px; background: #fff; text-align: center; box-shadow: 0 4px 12px rgba(66,79,112,.06); }
.login-mode span { flex: 1; color: #8d98ac; text-align: center; font-size: 13px; }

.form-errors, .errorlist {
  margin: 0 0 15px;
  padding: 11px 14px;
  border-radius: 9px;
  color: #b44343;
  background: #fff0f0;
  list-style: none;
  font-size: 13px;
}

.login-field { margin-bottom: 16px; }
.login-field label { display: block; margin: 0 0 8px 2px; color: #4b5870; font-size: 13px; font-weight: 650; }
.input-shell { position: relative; }
.input-shell svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: #8b96aa; pointer-events: none; }
.input-shell input {
  width: 100%;
  height: 58px;
  padding: 0 50px 0 50px;
  border: 1px solid var(--login-line);
  border-radius: 13px;
  outline: none;
  color: var(--login-ink);
  background: #fff;
  box-shadow: 0 7px 22px rgba(44,60,100,.035);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.input-shell input::placeholder { color: #b2bac8; }
.input-shell input:focus { border-color: rgba(91,92,226,.68); box-shadow: 0 0 0 4px rgba(91,92,226,.09), 0 9px 25px rgba(44,60,100,.05); }

.password-toggle { position: absolute; right: 10px; top: 50%; width: 38px; height: 38px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 9px; color: #98a2b5; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--login-primary); background: #f3f3ff; }

.login-helper { display: flex; justify-content: space-between; align-items: center; margin: 3px 2px 22px; color: var(--login-muted); font-size: 12px; }
.login-helper a { color: var(--login-primary); text-decoration: none; }

.login-button {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #6869ec, #5051d4);
  box-shadow: 0 14px 25px rgba(81,82,212,.24);
  cursor: pointer;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: 2px;
  transition: transform .2s, box-shadow .2s;
}
.login-button:hover { transform: translateY(-1px); box-shadow: 0 17px 30px rgba(81,82,212,.3); }
.login-button:active { transform: translateY(0); }

.login-note { margin: 24px 0 0; text-align: center; color: #9aa4b7; font-size: 12px; }
.site-footer { width: 100%; margin: 58px auto 0; color: #939eb2; text-align: center; font-size: 12px; line-height: 1.9; }
.site-footer a { color: #7e89a0; text-decoration: none; }

@media (max-width: 1080px) {
  .login-page { grid-template-columns: minmax(0, 1.25fr) minmax(410px, .9fr); }
  .brand-stage { padding: 38px; }
  .brand-hero { width: 88%; }
  .product-visual { width: 92%; }
  .stage-footer { left: 38px; }
}

@media (max-width: 820px) {
  .login-page { display: block; }
  .brand-stage { display: none; }
  .login-side { min-height: 100vh; padding: 30px 24px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin: 0 auto 48px; font-size: 19px; font-weight: 750; }
  .mobile-brand .peach-logo { width: 36px; height: 36px; flex-basis: 36px; border-radius: 14px; }
  .mobile-brand .peach-logo::before { left: 18px; }
  .mobile-brand .peach-logo::after { left: 17px; top: 8px; height: 20px; }
  .login-card { margin: 0 auto; }
  .site-footer { margin-top: 42px; }
}

@media (max-width: 460px) {
  .login-side { justify-content: flex-start; padding: 24px 20px; }
  .mobile-brand { margin-bottom: 42px; }
  .login-card h2 { font-size: 29px; }
  .login-mode strong { width: 63%; }
}
