body { min-height: 100vh; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--soft); padding: 44px clamp(32px, 5vw, 88px); gap: 18px; }
.stage-copy { width: 100%; max-width: 560px; }
.stage-copy .brand { margin-bottom: 42px; }
.stage-copy h1 { margin: 0 0 24px; font-size: clamp(34px, 4vw, 60px); line-height: 1.4; letter-spacing: -.055em; }
.stage-copy h1 em { color: var(--accent); font-style: normal; }
.stage-copy p { max-width: 530px; font-size: 18px; line-height: 1.8; color: var(--muted); margin: 0; }
.mascot-stage { width: min(560px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.mascot-svg { width: 100%; height: auto; overflow: visible; transition: transform 180ms ease; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 64px clamp(32px, 5vw, 80px); background: var(--surface); }
.login-card { width: 100%; max-width: 560px; }
.login-card h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.4; letter-spacing: -.045em; margin: 0 0 18px; }
.login-copy { color: var(--muted); font-size: 17px; line-height: 1.8; margin: 0 0 30px; }
.login-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 15px; font-weight: 600; }
.field input { min-width: 0; width: 100%; height: 56px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
.field input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px #355b4c16; }
.primary-button, .submit-button { width: 100%; min-height: 54px; padding: 12px 18px; border: 1px solid var(--accent); border-radius: 10px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.primary-button { margin-top: 8px; background: var(--accent); color: #fff; }
.primary-button:hover:not(:disabled) { background: #28483b; }
.submit-button { color: var(--accent); background: var(--surface); }
.submit-button:hover { background: var(--accent-soft); }
.button-link { display: grid; place-items: center; text-decoration: none; }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 28px 0; color: var(--muted); font-size: 13px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.login-status { min-height: 42px; margin-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-status.is-error { color: var(--danger); padding: 12px 14px; border-radius: 8px; background: #fff0ee; }
.mascot {
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  animation: mascot-idle 3.6s ease-in-out infinite alternate;
}

.mascot-small,
.mascot-right {
  animation-delay: -1.2s;
}

.mascot-left,
.mascot-center {
  animation-delay: -2.1s;
}

@keyframes mascot-idle {
  from { transform: translateY(0) rotate(-0.6deg); }
  to { transform: translateY(-4px) rotate(0.6deg); }
}

.mascot-svg.is-interactive .mascot,
.mascot-svg.looking-away .mascot {
  animation: none;
}

.torso,
.mouth,
.eye,
.brow,
.eye-ring,
.whistle {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

.brow {
  transition-duration: 180ms;
}

.whistle {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .mascot-svg {
    transform: none !important;
  }

  .mascot,
  .torso,
  .mouth,
  .eye,
  .brow,
  .eye-ring,
  .whistle {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-stage { flex-direction: column; padding: 28px 24px 0; gap: 0; }
  .stage-copy { position: static; align-self: stretch; max-width: 560px; margin: 0 auto; }
  .stage-copy .brand { margin-bottom: 24px; font-size: 25px; }
  .stage-copy h1 { font-size: 30px; margin-bottom: 14px; }
  .stage-copy p { font-size: 14px; }
  .mascot-stage { width: 240px; margin-top: -8px; }
  .login-panel { padding: 32px 24px 40px; }
  .login-card { max-width: 560px; }
  .login-card h2 { font-size: 27px; }
}
@media (max-width: 440px) {
  .stage-copy h1 { font-size: 26px; }
  .mascot-stage { width: 180px; margin-top: -6px; }
  .login-panel { padding-top: 28px; }
}
