:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: #1f2329;
  background: #f4f5f7;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; letter-spacing: 0; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1fr);
  align-items: stretch;
  background: #fff;
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px max(40px, 7vw);
  color: #fff;
  background: #20242b;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.45);
  font-size: 18px;
  font-weight: 700;
}

.login-brand h1 { margin: 0; font-size: 34px; line-height: 1.25; letter-spacing: 0; }
.login-brand p { margin: 12px 0 0; color: #c9cdd4; font-size: 15px; }

.login-panel {
  width: min(440px, calc(100vw - 40px));
  align-self: center;
  justify-self: center;
  padding: 38px 36px 34px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31,35,41,.08);
}

.login-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; border-bottom: 1px solid #e5e6eb; }
.login-tabs button { padding: 11px 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #646a73; cursor: pointer; }
.login-tabs button.is-active { border-bottom-color: #ff2442; color: #1f2329; font-weight: 700; }

form { display: grid; gap: 17px; }
form[hidden] { display: none; }
form h2 { margin: 0 0 3px; font-size: 18px; letter-spacing: 0; }
label { display: grid; gap: 7px; color: #3c4047; font-size: 13px; font-weight: 600; }
label small { color: #8f959e; font-weight: 400; }
input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #c9cdd4; border-radius: 4px; outline: none; color: #1f2329; background: #fff; }
input:focus { border-color: #ff2442; box-shadow: 0 0 0 3px rgba(255,36,66,.09); }
.primary-command { height: 42px; margin-top: 3px; border: 0; border-radius: 4px; color: #fff; background: #ff2442; font-weight: 700; cursor: pointer; }
.primary-command:hover { background: #e61e3a; }
.primary-command:disabled { cursor: wait; opacity: .65; }
.login-message { min-height: 22px; margin-top: 16px; color: #d93025; font-size: 13px; line-height: 1.6; }
.login-message.is-success { color: #16823b; }

@media (max-width: 760px) {
  .login-shell { display: block; min-height: 100vh; padding: 0 0 32px; background: #f4f5f7; }
  .login-brand { min-height: 170px; justify-content: flex-end; padding: 34px 24px 28px; }
  .brand-mark { width: 44px; height: 44px; margin-bottom: 16px; font-size: 15px; }
  .login-brand h1 { font-size: 26px; }
  .login-panel { width: calc(100vw - 24px); margin: 18px auto 0; padding: 28px 22px; }
}
