:root {
  /* Tool Mart brand — unified with The Toolbox design system (2026-07-08) */
  --tm-black:      #17191c;
  --tm-black-soft: #26221a;
  --tm-gold:       #e6a94b;
  --tm-gold-dark:  #b9770f;
  --tm-gold-light: #f8efdb;
  --ink-900:  #17191c;
  --ink-700:  #3a352c;
  --ink-500:  #5a5f64;
  --ink-200:  #ded9cd;
  --cream:    #f6f3ec;
  --white:    #fff;
  --shadow-lg: 0 30px 60px -20px rgba(20, 20, 28, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(230, 169, 75, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(26, 26, 26, 0.10), transparent 55%),
    var(--cream);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 18px;
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(20, 20, 28, 0.06);
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-200);
}
.brand-logo-img {
  width: 220px;
  height: auto;
  display: block;
}
.brand-tag {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tm-gold-dark);
  font-weight: 700;
}

h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--ink-900);
  margin: 0 0 6px;
}
.muted {
  color: var(--ink-500);
  font-size: 14px;
  margin: 0 0 24px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 8px;
}

input[type="password"], select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--cream);
  transition: border-color 0.15s ease, background 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%235e5e6a' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
input[type="password"]:focus, select:focus {
  outline: none;
  border-color: var(--tm-gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(230, 169, 75, 0.18);
}

.btn-primary {
  width: 100%;
  margin-top: 18px;
  padding: 13px 16px;
  background: var(--tm-black);
  color: var(--white);
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover  { background: var(--tm-black-soft); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.error {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(139, 26, 26, 0.08);
  border-left: 3px solid #8B1A1A;
  color: #8B1A1A;
  font-size: 14px;
  border-radius: 6px;
}

.footer-note {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.05em;
}
