:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: #f7f8f5;
  color: #172a2c;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #619c8c; outline-offset: 3px; }
[hidden] { display: none !important; }
.login-layout { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.04fr); min-height: 100dvh; }
.login-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: clamp(28px, 5vw, 78px);
  color: #fff;
  background:
    radial-gradient(ellipse at 86% 85%, #316463 0, transparent 56%),
    linear-gradient(145deg, #203d43, #14282e 65%);
}
.login-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20% -22% -64% 2%;
  border-radius: 50%;
  transform: rotate(-21deg);
  background: repeating-radial-gradient(ellipse at 52% 55%, transparent 0 22px, #9bbbae28 23px 24px);
  mask-image: linear-gradient(125deg, transparent 17%, #000 76%);
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 670; letter-spacing: .07em; }
.wordmark-icon {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid #b8d0bd90;
  border-radius: 11px;
  color: #cbe3d0;
  font-size: 19px;
  letter-spacing: 0;
}
.visual-copy { margin-bottom: clamp(24px, 8vh, 90px); }
.visual-copy h1 { margin: 0; font-size: clamp(46px, 7vw, 104px); line-height: 1.08; font-weight: 570; letter-spacing: -.06em; }
.visual-copy p { margin: 25px 0 0; color: #d0ded6; font-size: clamp(14px, 1.5vw, 18px); letter-spacing: .06em; }
.login-main { display: grid; place-items: center; padding: 36px clamp(30px, 7vw, 114px); }
.login-content { width: min(100%, 395px); }
.compact { display: none; }
.login-content h2 { margin: 0 0 28px; font-size: clamp(29px, 4vw, 40px); font-weight: 710; letter-spacing: -.04em; }
form { display: grid; gap: 10px; }
form label { font-size: 14px; font-weight: 640; }
form input {
  display: block;
  width: 100%;
  height: 51px;
  padding: 0 13px;
  color: #152b2c;
  background: #fff;
  border: 1px solid #cfd8d3;
  border-radius: 9px;
}
form input:focus { border-color: #528778; }
#username { margin-bottom: 9px; }
.password-field { position: relative; }
#password { padding-right: 68px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #346957;
  font-size: 13px;
}
.password-toggle:hover { background: #e8f1ec; }
.login-error { margin: 2px 0 0; color: #912e31; background: #f9eae8; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.sign-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  min-height: 51px;
  border-radius: 9px;
  border: 1px solid #204a43;
  background: #24564b;
  color: #fff;
  padding: 0 15px;
  font-weight: 650;
}
.sign-in:hover { background: #1d463d; }
.sign-in:disabled { opacity: .7; cursor: progress; }
.intake-link { display: inline-flex; gap: 7px; margin-top: 25px; color: #47645c; font-size: 14px; text-underline-offset: 4px; }
.intake-link:hover { color: #163c32; }
@media (max-width: 820px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); }
  .login-visual { display: none; }
  .login-main { padding: 38px 22px 60px; }
  .compact { display: inline-flex; margin-bottom: 28px; }
  .wordmark-icon { background: #23534b; }
}
