:root {
  color-scheme: light;
  --bg: #fff7f7;
  --panel: #ffffff;
  --line: #ead7d7;
  --text: #2b1b1b;
  --muted: #766565;
  --teal: #a61b1f;
  --red: #c1121f;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button, input { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.identity {
  min-height: 100vh;
  padding: 72px;
  background: #fffafa;
  color: var(--text);
  border-left: 10px solid #9f1c20;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.identity-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
}

.logo-tile {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
}

.logo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-divider {
  width: 1px;
  flex: 0 0 1px;
}

.identity-logos .logo-tile {
  box-shadow: none;
}

.identity-logos .pdd-logo {
  width: 70px;
  height: 70px;
  padding: 0;
}

.identity-logos .bayldahl-logo {
  width: 88px;
  height: 35px;
  padding: 0;
}

.identity-logos .logo-divider {
  height: 30px;
  background: #d9a4a6;
}

.identity-logos .logo-tile img {
  object-fit: contain;
}

.identity p {
  margin: 28px 0 8px;
  color: #9f1c20;
  font-size: 14px;
}

.identity h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: 0;
}

.data-strip {
  height: 92px;
  max-width: 420px;
  margin-top: 64px;
  display: flex;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid #e7c7c8;
}

.data-strip span {
  flex: 1;
  background: #e9878a;
  min-height: 20px;
}

.data-strip span:nth-child(1) { height: 38%; }
.data-strip span:nth-child(2) { height: 58%; background: #f6b6b8; }
.data-strip span:nth-child(3) { height: 48%; }
.data-strip span:nth-child(4) { height: 82%; background: #c94a50; }
.data-strip span:nth-child(5) { height: 68%; }
.data-strip span:nth-child(6) { height: 92%; background: #ffd1d1; }

.login-panel {
  min-height: 100vh;
  padding: 48px;
  display: grid;
  place-items: center;
}

form {
  width: min(100%, 390px);
  display: grid;
  gap: 18px;
}

header { margin-bottom: 8px; }

header span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

h2 {
  margin: 8px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input[type="text"], input[type="password"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: #d66b6f;
  box-shadow: 0 0 0 3px rgba(193,18,31,.12);
}

.show-password {
  display: flex;
  align-items: center;
  gap: 8px;
}

.show-password input { width: 16px; height: 16px; }

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

button:hover {
  background: #86171b;
  box-shadow: 0 7px 16px rgba(166, 27, 31, 0.22);
  transform: translateY(-1px);
}

button:disabled { opacity: .65; cursor: wait; }

#authStatus {
  min-height: 22px;
  margin: 0;
  color: #b42318;
  font-size: 13px;
}

.hidden { display: none; }

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .identity { min-height: 260px; padding: 36px 28px; }
  .identity h1 { font-size: 32px; }
  .identity-logos { gap: 9px; }
  .identity-logos .pdd-logo { width: 56px; height: 56px; }
  .identity-logos .bayldahl-logo { width: 72px; height: 28px; }
  .data-strip { display: none; }
  .login-panel { min-height: auto; padding: 42px 24px; }
}
