:root {
  --ink: #102f34;
  --muted: #74837f;
  --paper: #fffdf8;
  --line: #e2e6dc;
  --ocean: #0b3038;
  --teal: #207b6b;
  --coral: #f8684c;
  --sand: #f0e4c9;
  --font-sans: "Avenir Next", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Avenir Next", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #f3f4ed;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); }
.login-brand {
  position: relative;
  overflow: hidden;
  padding: 48px clamp(36px, 5.5vw, 84px);
  color: #f4efe2;
  background:
    radial-gradient(700px 520px at 78% 6%, rgba(97, 166, 153, .28), transparent 65%),
    radial-gradient(500px 420px at 8% 90%, rgba(248, 104, 76, .12), transparent 65%),
    linear-gradient(145deg, #0c373f 0%, #092b33 58%, #071f26 100%);
  display: flex;
  flex-direction: column;
}
.login-brand::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  right: -180px; top: -220px;
  border-radius: 50%;
  border: 1px solid rgba(240, 234, 215, .12);
  box-shadow: 0 0 0 70px rgba(240,234,215,.03), 0 0 0 145px rgba(240,234,215,.02);
}
.login-brand::after {
  content: "";
  position: absolute;
  left: 8%; bottom: 2%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(248, 104, 76, .12);
  filter: blur(70px);
}
.brand-row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.brand-row img { border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.brand-row strong { display: block; font-size: 25px; letter-spacing: .18em; line-height: 1; color: #f8f3e6; }
.brand-row small { display: block; margin-top: 7px; font-family: var(--font-num); font-size: 9px; letter-spacing: .42em; color: #97b3ad; }
.brand-copy { position: relative; z-index: 2; margin: auto 0 0; max-width: 640px; }
.brand-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--font-num); font-size: 10px; letter-spacing: .26em; color: #8fb1aa; margin-bottom: 20px; }
.brand-kicker::before { content: ""; width: 28px; height: 1px; background: var(--coral); }
.brand-copy h1 { margin: 0; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.24; letter-spacing: -.055em; font-weight: 700; }
.brand-copy h1 em { font-style: normal; color: #f6c978; }
.brand-copy p { max-width: 480px; margin: 22px 0 0; color: #a9c2bb; font-size: 13px; line-height: 1.9; }
.brand-points { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(235,241,226,.12); max-width: 680px; }
.brand-points div { display: flex; gap: 9px; align-items: flex-start; }
.brand-points span { font-family: var(--font-num); font-size: 9px; color: var(--coral); margin-top: 3px; }
.brand-points p { margin: 0; font-size: 10.5px; line-height: 1.7; color: #92aea7; }
.brand-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 210px; z-index: 1; }

.login-panel {
  position: relative;
  background:
    radial-gradient(600px 500px at 100% 0%, rgba(219,238,239,.65), transparent 65%),
    radial-gradient(500px 400px at 0% 100%, rgba(214,233,173,.25), transparent 70%),
    #f5f5ee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 32px;
}
.login-card {
  width: min(390px, 100%);
  background: rgba(255,253,248,.88);
  border: 1px solid rgba(222,227,217,.95);
  border-radius: 26px;
  padding: 34px 34px 28px;
  box-shadow: 0 30px 80px rgba(16,47,52,.1), 0 2px 8px rgba(16,47,52,.04);
  backdrop-filter: blur(14px);
  animation: cardIn .55s cubic-bezier(.22,.8,.25,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.login-eyebrow { display: flex; align-items: center; gap: 7px; font-family: var(--font-num); font-size: 9px; letter-spacing: .22em; color: var(--teal); margin-bottom: 16px; }
.login-eyebrow span { width: 18px; height: 1px; background: currentColor; }
.login-card h2 { margin: 0; font-size: 30px; letter-spacing: -.05em; }
.login-sub { margin: 8px 0 27px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.login-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.login-field > span:first-child { font-size: 10.5px; font-weight: 600; color: #415a5e; letter-spacing: .03em; }
.login-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #d9dfd5;
  border-radius: 11px;
  background: #fff;
  padding: 0 13px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  outline: 0;
  transition: border-color .18s, box-shadow .18s;
}
.login-field input::placeholder { color: #a7b1ac; }
.login-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(32,123,107,.09); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 57px; }
.password-wrap button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--teal); font-size: 9.5px; font-weight: 600; cursor: pointer; }
.password-wrap button:hover { background: #eef5f0; }
.remember-row { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; margin: 2px 0 17px; cursor: pointer; user-select: none; }
.remember-row input { accent-color: var(--teal); width: 14px; height: 14px; }
.login-error { background: #fbeae5; border: 1px solid #f1d2c8; color: #a94131; border-radius: 9px; padding: 9px 11px; font-size: 10.5px; line-height: 1.6; margin-bottom: 13px; }
.login-submit {
  width: 100%;
  height: 47px;
  border: 0;
  border-radius: 12px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(248,104,76,.23);
  transition: background .18s, transform .18s, opacity .18s;
}
.login-submit:hover { background: #df5035; transform: translateY(-1px); }
.login-submit:active { transform: none; }
.login-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.login-divider { height: 1px; background: #eceee6; margin: 24px 0 16px; }
.login-hint { margin: 0; color: #929e98; font-size: 9px; line-height: 1.75; }
.login-hint code { font-family: var(--font-num); font-size: 8.5px; color: #7c8e86; background: #f1f3ec; padding: 1px 4px; border-radius: 4px; }
.login-footer { width: min(390px, 100%); margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9aa59f; font-size: 8.5px; letter-spacing: .03em; }
.login-footer span { display: flex; align-items: center; gap: 5px; }
.login-footer i { width: 5px; height: 5px; border-radius: 50%; background: #79b89c; box-shadow: 0 0 0 3px rgba(121,184,156,.12); }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; min-height: 100dvh; }
  .login-brand { min-height: 300px; padding: 28px 24px 34px; }
  .brand-copy { margin-top: 42px; }
  .brand-copy h1 { font-size: 38px; }
  .brand-copy p { margin-top: 14px; max-width: 420px; font-size: 12px; }
  .brand-points { display: none; }
  .brand-waves { height: 120px; opacity: .7; }
  .login-panel { padding: 30px 20px 36px; justify-content: flex-start; }
  .login-card { margin-top: -36px; position: relative; z-index: 3; padding: 28px 24px 24px; border-radius: 22px; }
  .login-footer { margin-top: 18px; }
}
@media (max-width: 480px) {
  .login-brand { min-height: 260px; }
  .brand-copy h1 { font-size: 32px; }
  .brand-copy p { font-size: 11px; max-width: 320px; }
  .brand-kicker { margin-bottom: 13px; }
  .brand-row strong { font-size: 22px; }
  .login-card h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
