.login-shell { min-height: 100vh; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: radial-gradient(circle at 15% 12%, rgba(196, 181, 253, .9), transparent 34%), radial-gradient(circle at 85% 80%, rgba(165, 243, 252, .72), transparent 30%), linear-gradient(145deg, #f8fafc, #eef2ff 58%, #faf5ff); }
.login-card { width: min(100%, 29rem); padding: clamp(1.35rem, 5vw, 2.35rem); border: 1px solid rgba(255, 255, 255, .72); border-radius: 1.65rem; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.login-card__heading { margin: 2rem 0 1.4rem; }
.login-card__heading h1 { margin: 0; font-size: var(--type-page-title); line-height: 1.05; letter-spacing: -.045em; }
.login-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.login-form > label { display: grid; gap: .45rem; font-size: .88rem; font-weight: 700; }
.login-form input { width: 100%; min-height: 3rem; padding: .7rem .85rem; color: var(--ink); border: 1px solid #d0d5dd; border-radius: .8rem; background: rgba(255, 255, 255, .82); }
.captcha-dialog { width: fit-content; max-width: calc(100% - 28px); padding: 0; overflow: visible; border: 0; border-radius: 8px; background: transparent; box-shadow: 0 30px 90px rgba(23, 33, 43, .32); outline: none; }
.captcha-dialog::backdrop { background: rgba(12, 23, 32, .66); backdrop-filter: blur(5px); }
.captcha-host { display: grid; min-width: 226px; min-height: 178px; place-items: center; }
.captcha-host .gc-drag-block[role="slider"]:focus-visible { outline: 3px solid #4f46e5; outline-offset: 3px; }
.captcha-host-state { display: flex; min-width: 280px; min-height: 178px; align-items: center; justify-content: center; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; box-shadow: 0 0 20px rgba(100, 100, 100, .1); font-size: .875rem; }
.captcha-host-state.is-error { color: var(--danger); }
.captcha-host-spinner { width: 22px; height: 22px; border: 3px solid #e0e7ff; border-top-color: var(--accent); border-radius: 50%; animation: captcha-spin .75s linear infinite; }

.message-stack { position: fixed; z-index: 3000; top: max(20px, env(safe-area-inset-top)); right: auto; bottom: auto; left: 50%; display: grid; width: min(92vw, 520px); height: auto; margin: 0; padding: 0; gap: 12px; overflow: visible; border: 0; background: transparent; pointer-events: none; transform: translateX(-50%); }
.floating-message { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; box-shadow: 0 10px 28px rgba(31, 45, 57, .18); opacity: 0; pointer-events: auto; transform: translateY(-14px); transition: opacity .18s ease, transform .18s ease; }
.floating-message.is-visible { opacity: 1; transform: translateY(0); }
.floating-message.is-leaving { opacity: 0; transform: translateY(-10px); }
.floating-message-icon { display: grid; flex: 0 0 auto; width: 19px; height: 19px; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: .6875rem; font-weight: 850; line-height: 1; }
.floating-message-content { min-width: 0; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.5; }
.floating-message.is-success { color: #529b2e; border-color: #e1f3d8; background: #f0f9eb; }
.floating-message.is-error { color: #c45656; border-color: #fde2e2; background: #fef0f0; }
.floating-message.is-warning { color: #b88230; border-color: #faecd8; background: #fdf6ec; }
.floating-message.is-info { color: #73767a; border-color: #e9e9eb; background: #f4f4f5; }

@keyframes captcha-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .captcha-host-spinner { animation: none; }
  .floating-message { transition: none; }
}

@media (max-width: 34rem) {
  .login-shell { padding: 0; align-items: stretch; }
  .login-card { width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
}
