:root {
  --gentlee-paper: #d9d3cf;
  --gentlee-paper-deep: #cac2bc;
  --gentlee-ink: #26180d;
  --gentlee-ink-soft: #4b382a;
  --gentlee-bone: #fbf8f3;
  --gentlee-bone-dim: #e6ddd6;
  --gentlee-accent: #8b6b4f;
  --gentlee-line: rgba(38, 24, 13, 0.16);
  --gentlee-shadow: rgba(27, 16, 8, 0.2);
}

body.dark {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.42), transparent 30%),
    radial-gradient(circle at 15% 18%, rgba(96, 70, 48, 0.14), transparent 22%),
    radial-gradient(circle at 85% 82%, rgba(82, 61, 43, 0.12), transparent 24%),
    linear-gradient(135deg, #cec7c1 0%, #ddd8d3 34%, #c9c1bb 100%);
  color: var(--gentlee-ink);
}

body.dark::before,
body.dark::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body.dark::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
}

body.dark::after {
  inset: 1.5rem;
  border: 1px solid rgba(38, 24, 13, 0.06);
  border-radius: 32px;
}

#app {
  position: relative;
  z-index: 1;
}

#login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

#login form {
  width: min(100%, 31.5rem);
  margin: 0;
  padding: 2.4rem 2.35rem 2.15rem;
  border: 1px solid rgba(38, 24, 13, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 248, 243, 0.92)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(202, 194, 188, 0.24));
  box-shadow:
    0 28px 80px rgba(27, 16, 8, 0.14),
    0 8px 24px rgba(27, 16, 8, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#login form::before {
  content: "";
  display: block;
  width: 138px;
  height: 138px;
  margin: 0 auto 1rem;
  background: url("/static/img/gentlee-original.png?v=20260506h") center/contain no-repeat;
  filter: drop-shadow(0 12px 18px rgba(38, 24, 13, 0.08));
}

#login form::after {
  content: "A quieter home for the files you want to keep.";
  display: block;
  margin-top: -0.85rem;
  margin-bottom: 1.5rem;
  color: rgba(38, 24, 13, 0.66);
  font-size: 0.96rem;
  line-height: 1.55;
  text-align: center;
}

#login img {
  display: none;
}

#login h1 {
  margin: 0 0 1.5rem;
  color: var(--gentlee-ink);
  font-size: clamp(1.85rem, 3.6vw, 2.45rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-align: center;
  text-transform: uppercase;
}

#login h1::before {
  content: "Private archive access";
  display: block;
  margin-bottom: 0.95rem;
  color: var(--gentlee-ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
}

#login .input,
#login .button {
  border-radius: 18px;
}

#login .input {
  height: 3.5rem;
  margin-bottom: 0.9rem;
  padding: 0 1.05rem;
  border: 1px solid rgba(38, 24, 13, 0.14);
  background: rgba(255, 252, 248, 0.8);
  color: var(--gentlee-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#login .input::placeholder {
  color: rgba(75, 56, 42, 0.62);
}

#login .input:focus {
  border-color: rgba(75, 56, 42, 0.58);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(75, 56, 42, 0.1);
}

#login .button {
  height: 3.5rem;
  margin-top: 0.5rem;
  border: 0;
  background: linear-gradient(135deg, #2b1d12 0%, #4b382a 100%);
  color: var(--gentlee-bone);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 18px 32px rgba(38, 24, 13, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#login .button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 22px 36px rgba(38, 24, 13, 0.28);
}

#login .button:active {
  transform: translateY(0);
}

#login .button:focus {
  box-shadow: 0 0 0 4px rgba(75, 56, 42, 0.14), 0 22px 36px rgba(38, 24, 13, 0.2);
}

#login .error {
  border-radius: 16px;
  border: 1px solid rgba(135, 39, 24, 0.18);
  background: rgba(255, 242, 239, 0.78);
  color: #7c2d12;
}

#login a,
#login .link {
  color: var(--gentlee-ink-soft);
}

@media (max-width: 640px) {
  #login {
    padding: 1rem;
  }

  #login form {
    padding: 1.9rem 1.25rem 1.45rem;
    border-radius: 26px;
  }

  #login img {
    display: none;
  }

  #login form::before {
    width: 116px;
    height: 116px;
  }

  #login h1 {
    font-size: 1.7rem;
  }

  body.dark::after {
    inset: 0.75rem;
    border-radius: 22px;
  }
}