:root {
  color-scheme: light;
  --bg: #eef3f7;
  --panel: rgba(255, 255, 255, 0.94);
  --text: #172331;
  --muted: #617184;
  --line: #d8e2eb;
  --accent: #157a6e;
  --accent-strong: #0f5f56;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(21, 122, 110, 0.12), rgba(58, 91, 124, 0.14)),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.login-panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid rgba(216, 226, 235, 0.9);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(23, 35, 49, 0.16);
  padding: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-lockup img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.1;
}

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

label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}

input:focus {
  outline: 2px solid rgba(21, 122, 110, 0.24);
  border-color: rgba(21, 122, 110, 0.7);
}

button {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

#loginButton {
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
}

#loginButton:hover {
  background: var(--accent-strong);
}

.guest-button {
  width: 100%;
  margin-top: 12px;
  background: #f7fafc;
  color: var(--text);
  border: 1px solid var(--line);
}

.guest-button:hover {
  border-color: rgba(21, 122, 110, 0.55);
}

.login-status {
  min-height: 1.25rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-status.error {
  color: var(--danger);
}

@media (max-width: 520px) {
  .login-shell {
    padding: 16px;
  }

  .login-panel {
    padding: 22px;
  }

  h1 {
    font-size: 1.55rem;
  }
}
