.login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(16px, 5vw, 72px);
  background-color: var(--paper);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--muted) 16%, transparent) .8px, transparent 1px);
  background-size: 12px 12px;
}

.login-book {
  display: grid;
  grid-template-columns: .9fr 1fr;
  max-width: 910px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 42px #263e2c12, 0 3px 8px #263e2c0a;
  overflow: hidden;
}

.book-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  min-width: 0;
  padding: 46px 24px;
  color: #f8f5de;
  background-color: #365c47;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, #f2f4c90d 3px 4px),
                    repeating-linear-gradient(90deg, transparent 0 3px, #101f1a19 3px 4px);
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed #d9e1bd80;
  border-radius: 13px;
  pointer-events: none;
}

.book-brand { display: flex; align-items: center; gap: 10px; font-size: 36px; font-weight: 700; letter-spacing: -1.4px; line-height: 1.2; }
.book-brand svg { width: 45px; height: 45px; }
.book-photos { position: relative; width: min(280px, 100%); height: 204px; }
.photo-print {
  position: absolute;
  width: 58%;
  padding: 7px 7px 17px;
  background: #fffaf0;
  box-shadow: 1px 5px 11px #142b2054;
}
.photo-print img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-print.rabbit { top: 3%; right: 2%; transform: rotate(10deg); }
.photo-print.bear { bottom: 1%; left: 1%; transform: rotate(-10deg); }
.photo-print.bear::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 28%;
  width: 41%;
  height: 17px;
  background: #d9b980df;
  transform: rotate(4deg);
}

.login-form { align-self: center; min-width: 0; padding: clamp(36px, 5vw, 68px) clamp(30px, 4.2vw, 56px); }
.login-form h1 { margin: 0; font-size: clamp(32px, 3.2vw, 42px); line-height: 1.25; color: var(--strong); letter-spacing: -1.6px; }
.login-intro { color: var(--muted); margin: 6px 0 30px; }
.login-form label { display: block; margin: 17px 0 6px; color: var(--text); font-size: 14px; font-weight: 650; }
.login-form input {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
}
.login-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.show-password { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 44px; border-radius: 7px; color: var(--muted); }
.show-password:hover { color: var(--strong); background: var(--soft); }
.show-password svg, .login-submit svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.show-password[aria-pressed=false] .eye-slash { display: none; }
.login-error { margin: 12px 0 0; border-radius: 7px; padding: 8px 12px; font-size: 14px; background: var(--alert-bg); color: var(--alert-text); }
.login-form .login-submit { width: 100%; min-height: 47px; margin-top: 25px; gap: 10px; font-size: 15px; }

@media (max-width: 680px) {
  .login-book { grid-template-columns: 1fr; max-width: 420px; border-radius: 18px; }
  .book-cover { min-height: 112px; display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; overflow: hidden; }
  .book-cover::before { inset: 8px; border-radius: 10px; }
  .book-brand { gap: 6px; font-size: 26px; white-space: nowrap; }
  .book-brand svg { width: 33px; height: 33px; }
  .book-photos { width: 90px; height: 72px; flex: none; }
  .photo-print.rabbit { display: none; }
  .photo-print.bear { width: 66px; left: auto; right: 6px; bottom: -2px; padding: 3px 3px 7px; transform: rotate(8deg); }
  .photo-print.bear::after { top: -3px; height: 8px; }
  .login-form { padding: 25px clamp(18px, 6vw, 32px) 30px; }
  .login-intro { margin-bottom: 22px; }
}
