:root {
  --bg: #eef1f5;
  --panel: #ffffff;
  --line: #d9dee5;
  --ink: #223042;
  --muted: #708092;
  --brand: #2f7dd1;
  --danger-bg: #ffe4e4;
  --danger-line: #f0b2b2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef1f5 0%, #dde6f1 100%);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

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

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(34, 48, 66, 0.1);
}

.login-card h1 {
  margin: 0 0 8px;
}

.muted {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 600;
}

.remember-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.remember-field input {
  margin: 0;
}

.input {
  width: 100%;
  border: 1px solid #cdd5df;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}

.button {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.message {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.message.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
}

.hidden {
  display: none;
}

.debug-box {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #d9dee5;
  border-radius: 12px;
  background: #f8fbff;
}

.debug-box-head {
  font-size: 13px;
  font-weight: 700;
  color: #36506b;
  margin-bottom: 8px;
}

.debug-box-output {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.45;
  color: #223042;
  max-height: 240px;
  overflow: auto;
}
