:root {
  --bg: #e6e6e6;
  --card: #f7f7f7;
  --text: #161616;
  --muted: #5d5d5d;
  --accent: #1e1e1e;
  --accent-hover: #090909;
  --danger: #b84242;
  --border: #d2d2d2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: radial-gradient(circle at top, #f0f0f0, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("./tmc-logo.png") no-repeat center 42%;
  background-size: 620px auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.wrap,
.login-card,
.set-password-card {
  position: relative;
  z-index: 1;
}

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

.card {
  width: min(460px, 100%);
  background: rgba(247, 247, 247, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.login-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  border: 1px solid #d0d0d0;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.brand {
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: #222;
  text-align: center;
}

.badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.08);
  color: #1f1f1f;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.subtitle {
  margin: 10px 0 22px;
  color: var(--muted);
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 14px;
  color: #2e2e2e;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease;
}

input:focus {
  border-color: #1c1c1c;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  margin-top: 6px;
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #3f5379;
}

.links {
  margin-top: 14px;
}

.links a {
  color: #1e1e1e;
  text-decoration: none;
  font-size: 14px;
}

.links a:hover {
  text-decoration: underline;
}

.message {
  min-height: 24px;
  margin: 12px 0 0;
  font-size: 14px;
}

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

.message.success {
  color: #2f7a57;
}

.demo-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed #bdbdbd;
  border-radius: 10px;
  background: #fff;
}

.demo-title {
  margin: 0 0 6px;
  font-size: 13px;
  color: #1c1c1c;
}

.demo-box p {
  margin: 5px 0;
  font-size: 13px;
  color: var(--muted);
}

code {
  color: #111;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 2px 5px;
}
