.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--paper);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 3rem 2rem;
  text-align: center;
  color: #f8fafc;
  background:
    radial-gradient(circle at 12% 10%, rgb(26 79 214 / 55%), transparent 26rem),
    radial-gradient(circle at 90% 90%, rgb(224 40 38 / 16%), transparent 22rem),
    linear-gradient(150deg, #0c1c52 0%, #12286e 55%, #1a4fd6 120%);
}

.brand-logo {
  display: block;
  width: clamp(14rem, 26vw, 24rem);
  height: auto;
  /* The artwork has a white background, so it sits on a white card */
  padding: 1rem;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.5);
}

.brand-rule {
  width: 7rem;
  height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent) 50%, var(--brand-red) 50%);
}

.brand-note {
  max-width: 38rem;
  margin: 0;
  color: #d3defa;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.4;
}

.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 460px;
  width: calc(100% - 2rem);
  margin: auto;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.panel .mark {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.panel h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.panel .lede {
  color: var(--muted);
  font-size: var(--fs-md);
  margin-bottom: 2rem;
}

#login-form {
  display: flex;
  flex-direction: column;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 2.8rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--ink);
}

.password-toggle:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.password-toggle .eye-off {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-off {
  display: block;
}

#login-form button[type="submit"] {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1.2rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.15s ease;
}

#login-form button[type="submit"]:not(:disabled):hover {
  background: var(--accent-hover);
}

#login-form button[type="submit"]:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

#login-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .brand {
    gap: 1rem;
    padding: 2.5rem 1.5rem 4rem;
  }
  .brand-logo {
    width: 11rem;
  }
  .brand-note {
    font-size: var(--fs-md);
  }
  .panel {
    margin: -2rem auto 2rem;
    position: relative;
  }
}
