:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #657076;
  --paper: rgba(255, 255, 255, 0.82);
  --line: rgba(16, 24, 32, 0.12);
  --accent: #0a7f70;
  --accent-ink: #063c36;
  --rose: #b45d5d;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(10, 127, 112, 0.16), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(180, 93, 93, 0.13), transparent 30%),
    #f5f3ee;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(460px, calc(100% - 32px));
}

.login-card,
.links-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(31, 35, 30, 0.16);
  backdrop-filter: blur(18px);
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 28px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.login-form {
  display: grid;
  gap: 10px;
}

label {
  color: var(--muted);
  font-size: 14px;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
}

input {
  min-width: 0;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: rgba(10, 127, 112, 0.54);
  box-shadow: 0 0 0 4px rgba(10, 127, 112, 0.11);
}

button {
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.error {
  min-height: 20px;
  margin: 0;
  color: var(--rose);
  font-size: 13px;
}

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.quiet-button {
  width: auto;
  height: 36px;
  border: 1px solid var(--line);
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font-size: 13px;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-list a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.link-list a:hover,
.link-list a:focus-visible {
  border-color: rgba(10, 127, 112, 0.42);
  background: #fff;
  transform: translateY(-1px);
}

.link-list span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-ink);
  color: #fff;
  font-weight: 900;
}

.link-list strong {
  line-height: 1.35;
}

[hidden] {
  display: none !important;
}

@media (max-width: 420px) {
  .login-card,
  .links-card {
    padding: 26px;
    border-radius: 16px;
  }

  h1 {
    font-size: 36px;
  }

  .password-row {
    grid-template-columns: 1fr;
  }
}
