:root {
  color-scheme: light;
  --canvas: #f4f2ed;
  --card: rgba(255, 255, 255, 0.91);
  --ink: #1c2420;
  --ink-soft: #5f6964;
  --line: rgba(31, 47, 39, 0.15);
  --emerald: #15845c;
  --focus: rgba(21, 132, 92, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.98), transparent 31rem),
    radial-gradient(circle at 88% 70%, rgba(218, 238, 226, 0.43), transparent 32rem),
    linear-gradient(145deg, #f8f6f1 0%, var(--canvas) 58%, #eeece6 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.login-card {
  width: min(100%, 390px);
  padding: 35px;
  background: var(--card);
  border: 1px solid rgba(31, 47, 39, 0.09);
  border-radius: 25px;
  box-shadow: 0 22px 58px rgba(41, 53, 46, 0.09), 0 2px 8px rgba(41, 53, 46, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  color: #fff;
  background: linear-gradient(145deg, #1d9a6c, #0d694a);
  border-radius: 10px;
  box-shadow: 0 7px 15px rgba(21, 132, 92, 0.2), inset 0 1px rgba(255, 255, 255, 0.24);
  place-items: center;
}

.brand-mark svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

h1 {
  margin: 35px 0 26px;
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

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

label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 620;
}

input,
button {
  width: 100%;
  min-height: 48px;
  border-radius: 13px;
  font: inherit;
}

input {
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(251, 252, 250, 0.96);
  border: 1px solid var(--line);
  outline: none;
  font-size: 17px;
  letter-spacing: 0.08em;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
  border-color: rgba(21, 132, 92, 0.55);
  box-shadow: 0 0 0 4px var(--focus);
}

button {
  margin-top: 10px;
  color: #fff;
  background: linear-gradient(145deg, #1d9a6c, #117451);
  border: 0;
  box-shadow: 0 9px 19px rgba(21, 132, 92, 0.18);
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

button:hover {
  box-shadow: 0 11px 22px rgba(21, 132, 92, 0.24);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .login-shell {
    padding: 18px 12px;
  }

  .login-card {
    padding: 28px 22px;
    border-radius: 21px;
  }

  h1 {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
