:root {
  --ink: #171b18;
  --muted: #68716a;
  --line: #dce2dd;
  --green: #16784a;
  --green-dark: #105f3b;
  --green-soft: #e9f5ee;
  --red: #b83232;
  --red-soft: #fff0ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #f2f4f1;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; letter-spacing: 0; }
.hidden { display: none !important; }

.login-page {
  display: grid;
  place-items: center;
  padding: 32px 20px;
  border-top: 4px solid #171b18;
}

.login-shell { width: min(400px, 100%); }

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

.login-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #d8f5e4;
  background: #171b18;
  border-radius: 6px;
}

.login-mark svg { width: 22px; height: 22px; }
.login-kicker { margin: 0 0 1px; color: var(--muted); font-size: 11px; font-weight: 700; }
.login-brand h1 { margin: 0; font-size: 20px; font-weight: 730; }

.login-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 12px 34px rgba(23, 30, 25, 0.08);
}

.login-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-heading h2 { margin: 0; font-size: 18px; }
.secure-label { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 11px; font-weight: 700; }
.secure-label svg { width: 14px; height: 14px; }

.field { display: grid; gap: 7px; margin-top: 16px; }
.field > span { color: #4d554f; font-size: 12px; font-weight: 650; }
.input-shell { position: relative; }
.input-shell > svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; color: #778078; transform: translateY(-50%); pointer-events: none; }
.input-shell input { width: 100%; height: 44px; padding: 9px 44px 9px 40px; color: var(--ink); background: #fff; border: 1px solid #cbd3cc; border-radius: 5px; outline: none; }
.input-shell input:focus { border-color: #287959; box-shadow: 0 0 0 3px rgba(40, 121, 89, 0.14); }

.password-toggle {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #657067;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.password-toggle:hover { background: #f1f4f1; }
.password-toggle svg { width: 17px; height: 17px; }
.password-toggle:focus-visible, .login-button:focus-visible { outline: 3px solid rgba(40, 121, 89, 0.22); outline-offset: 2px; }

.login-error { margin: 16px 0 0; padding: 9px 11px; color: var(--red); background: var(--red-soft); border: 1px solid #efc4c0; border-radius: 4px; font-size: 12px; }

.login-button {
  width: 100%;
  height: 44px;
  margin-top: 22px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

.login-button:hover:not(:disabled) { background: var(--green-dark); }
.login-button:disabled { cursor: wait; opacity: 0.65; }
.login-button svg { width: 17px; height: 17px; }

.login-footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #33a86b; box-shadow: 0 0 0 3px rgba(51, 168, 107, 0.12); }

@media (max-width: 480px) {
  .login-page { place-items: start center; padding-top: 56px; }
  .login-card { padding: 22px 18px; }
}
