:root {
  --red: #971c2b;
  --red-dark: #72111e;
  --ink: #17191d;
  --muted: #6e737c;
  --line: #dfe2e7;
  --soft: #f5f6f8;
  --shadow: 0 24px 70px rgba(24, 28, 34, 0.16);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--ink);
  background: #eef0f3;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 46%) 1fr;
}
.login-context {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 42px clamp(32px, 6vw, 86px);
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(145deg, #1d2025 0%, #24272d 48%, #15171b 100%);
}
.login-context:before,
.login-context:after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(35deg);
}
.login-context:before {
  width: 430px;
  height: 430px;
  right: -180px;
  top: 15%;
}
.login-context:after {
  width: 620px;
  height: 620px;
  right: -250px;
  top: 10%;
}
.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}
.brand > span,
.mobile-brand > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--red);
  font: 700 22px 'Roboto Mono';
  color: #fff;
}
.brand > img,
.mobile-brand > img {
  width: 64px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.16));
}
.mobile-brand > img {
  width: 56px;
  height: 48px;
  filter: none;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 17px;
}
.brand small {
  margin-top: 3px;
  font: 600 10px 'Roboto Mono';
  letter-spacing: 0.13em;
  color: #aeb3bc;
}
.context-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  max-width: 540px;
}
.eyebrow {
  margin: 0 0 13px;
  font: 700 11px 'Roboto Mono';
  letter-spacing: 0.18em;
  color: var(--red);
}
.login-context .eyebrow {
  color: #e06b79;
}
.context-copy h1 {
  margin: 0;
  max-width: 500px;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.context-copy > p:last-child {
  max-width: 500px;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.9;
  color: #c4c8ce;
}
.security-note {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.security-note > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #e87683;
}
.security-note strong,
.security-note small {
  display: block;
}
.security-note strong {
  font-size: 14px;
}
.security-note small {
  margin-top: 3px;
  color: #aeb3bc;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 42px;
}
.login-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 45px;
}
.mobile-brand {
  display: none;
}
.login-card h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.035em;
}
.intro {
  margin: 9px 0 30px;
  color: var(--muted);
}
.field {
  display: block;
  margin-top: 18px;
}
.field > span:first-child {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}
.field input {
  width: 100%;
  height: 52px;
  border: 1px solid #cfd3d9;
  background: #fff;
  padding: 0 15px;
  outline: 0;
  border-radius: 2px;
}
.field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(151, 28, 43, 0.1);
}
.password-wrap {
  position: relative;
  display: block;
}
.password-wrap input {
  padding-right: 68px;
}
.password-wrap button {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.default-password {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 17px;
  padding: 11px 13px;
  background: #f8f1f2;
  border-left: 3px solid var(--red);
  font-size: 13px;
  color: #4f535a;
}
.default-password > span {
  font: 700 13px 'Roboto Mono';
  color: var(--red);
}
.default-password p {
  margin: 0;
}
.login-error {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #b11d2d;
}
.login-button {
  width: 100%;
  height: 54px;
  margin-top: 6px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: 0.2s;
}
.login-button:hover {
  background: var(--red-dark);
}
.login-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.login-button span {
  font-size: 19px;
}
.demo-accounts {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.demo-accounts summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.demo-accounts > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}
.demo-accounts button {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 9px;
  text-align: left;
  font-size: 12px;
  color: #555;
}
.demo-accounts b {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-family: 'Roboto Mono';
}
@media (max-width: 820px) {
  .login-shell {
    display: block;
  }
  .login-context {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    padding: 22px;
    background: linear-gradient(155deg, #22252b 0 25%, #eef0f3 25%);
  }
  .login-card {
    padding: 30px 24px;
  }
  .mobile-brand {
    display: flex;
    margin-bottom: 38px;
  }
  .mobile-brand > span {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .mobile-brand strong {
    font-size: 15px;
  }
  .login-card h2 {
    font-size: 28px;
  }
}
@media (max-width: 420px) {
  .mobile-brand {
    gap: 9px;
  }
  .mobile-brand > img {
    width: 48px;
    height: 42px;
  }
  .mobile-brand strong {
    font-size: 14px;
  }
  .login-panel {
    padding: 14px;
  }
  .login-card {
    box-shadow: 0 15px 45px rgba(24, 28, 34, 0.2);
  }
  .demo-accounts > div {
    grid-template-columns: 1fr;
  }
}
