:root {
  color: #14201f;
  background: #eef3f1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --accent: #0f766e;
  --accent-dark: #0b5d57;
  --border: #dce6e3;
  --muted: #73807e;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(15, 118, 110, 0.13), transparent 32%),
    linear-gradient(145deg, #f7faf9 0%, #edf3f1 100%);
}

button,
input {
  font: inherit;
}

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

.login-card {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid rgba(220, 230, 227, 0.94);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(34, 63, 58, 0.13);
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.brand-line > div:last-child {
  display: flex;
  flex-direction: column;
}

.brand-line strong {
  font-size: 16px;
}

.brand-line span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.login-heading {
  margin: 34px 0 26px;
}

.login-heading p {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.login-heading h1 {
  margin: 0 0 8px;
  font-size: 27px;
  letter-spacing: -0.02em;
}

.login-heading span {
  color: var(--muted);
  font-size: 14px;
}

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

label {
  margin-top: 5px;
  color: #4f5e5b;
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid #cfdcD8;
  border-radius: 8px;
  background: #fff;
  color: #14201f;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

button {
  height: 45px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

button:hover:not(:disabled) {
  background: var(--accent-dark);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.login-error {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #f0c7c3;
  border-radius: 7px;
  background: #fff4f2;
  color: var(--danger);
  font-size: 13px;
}

.security-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid #edf1f0;
  color: #87918f;
  font-size: 12px;
  text-align: center;
}
