/* Instance-only login treatment. The simulation and original Loom stylesheet are unchanged. */
#login.tidebound-login {
  --sea: #a9d7cb; --ink: #0c1c24; --paper: #edf2e9; --quiet: #a7b9ba;
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--ink); color: var(--paper);
  box-shadow: none; backdrop-filter: none; overflow: auto;
}
#login.tidebound-login[open] { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(390px, 1fr); }
#login.tidebound-login::backdrop { background: #0c1c24; backdrop-filter: none; }
.tidebound-scene { position: relative; min-height: 100%; isolation: isolate; overflow: hidden; background: #102d35; }
.tidebound-scene picture, .tidebound-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; z-index: -2; }
.tidebound-scene::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,20,27,.5), transparent 35%, rgba(5,20,27,.16) 55%, rgba(5,20,27,.92)), linear-gradient(90deg, transparent 75%, rgba(12,28,36,.5)); }
.tidebound-wordmark { position: absolute; top: 44px; left: 48px; display: flex; align-items: center; gap: 15px; }
.tidebound-sigil { width: 36px; height: 36px; color: #c1dfd2; }
.tidebound-wordmark span { font-family: Georgia, 'Times New Roman', serif; font-size: 26px; letter-spacing: .04em; }
.tidebound-story { position: absolute; bottom: 64px; left: 48px; right: 48px; max-width: 620px; }
.tidebound-chapter { font-size: 13px; color: #bad8cd; letter-spacing: .14em; margin: 0 0 20px; }
#login .tidebound-story h1 { font: normal clamp(40px, 4.1vw, 66px)/1.06 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
.tidebound-story p:last-of-type { color: #d1ddd6; font-size: 16px; line-height: 1.65; max-width: 450px; margin: 0; }
.tidebound-illustration { display: block; margin-top: 30px; color: #a5bbb9; font-size: 11px; letter-spacing: .03em; }
.tidebound-entry { padding: 60px clamp(30px, 4vw, 72px) 30px; display: flex; flex-direction: column; justify-content: center; position: relative; background: radial-gradient(ellipse at 0% 20%, #17333c 0, transparent 65%); }
.tidebound-entry::before { content: ''; width: 36px; height: 2px; background: #b9d6c2; margin-bottom: 34px; }
#login .tidebound-entry h2 { font: normal 36px/1.15 Georgia, 'Times New Roman', serif; margin: 0 0 12px; letter-spacing: -.025em; }
#login .tidebound-entry .tagline { font-size: 14px; line-height: 1.65; color: var(--quiet); margin: 0 0 34px; max-width: 320px; }
#login.tidebound-login label { font-size: 13px; color: #d6e1da; letter-spacing: .015em; text-transform: none; margin: 0 0 9px; }
#login.tidebound-login #login-user, #login.tidebound-login #login-token { box-sizing: border-box; width: 100%; height: 50px; min-height: 50px; border: 1px solid #40575c; border-radius: 5px; background: #11262f; padding: 12px 14px; color: #edf2e9; font-size: 16px; margin: 0 0 22px; box-shadow: none; }
#login.tidebound-login #login-user:focus, #login.tidebound-login #login-token:focus { outline: 2px solid #b0dbce; outline-offset: 3px; border-color: #b0dbce; background: #152e37; }
.tidebound-password { position: relative; }
#login.tidebound-login #login-token { padding-right: 68px; }
#login .tidebound-reveal { position: absolute; top: 3px; right: 4px; height: 44px; min-width: 54px; border: 0; background: transparent; color: #b8d8d0; font-size: 12px; border-radius: 3px; padding: 8px; }
#login .tidebound-reveal:focus-visible { outline: 2px solid #b0dbce; outline-offset: -2px; }
#login.tidebound-login .row { margin: 4px 0 0; }
#login.tidebound-login .row button.primary { min-height: 50px; width: 100%; background: #c3dccc; color: #102c30; border: 1px solid #d3e5d5; border-radius: 5px; font-size: 15px; font-weight: 650; letter-spacing: .02em; box-shadow: none; transition: background .15s; }
#login.tidebound-login .row button.primary:hover { background: #e0eade; }
#login.tidebound-login .row button.primary:focus-visible { outline: 2px solid #edf2e9; outline-offset: 4px; }
#login.tidebound-login .row button.primary:disabled { opacity: .55; cursor: wait; }
#login.tidebound-login .err { color: #ffd1bc; font-size: 13px; line-height: 1.5; margin: -4px 0 18px; }
#login.tidebound-login .foot { color: var(--quiet); font-size: 12px; line-height: 1.7; margin: 24px 0 0; text-align: center; }
.tidebound-entry-footer { margin-top: 64px; color: #8fa7a8; font-size: 11px; text-align: center; letter-spacing: .04em; }
@media (min-width: 1600px) { .tidebound-story { left: 72px; bottom: 80px; } .tidebound-wordmark { left: 72px; } }
@media (max-width: 760px) {
  #login.tidebound-login[open] { grid-template-columns: 1fr; grid-template-rows: 310px auto; }
  .tidebound-scene { min-height: 310px; }
  .tidebound-scene img { object-position: left 44%; }
  .tidebound-wordmark { top: 24px; left: 24px; gap: 10px; }
  .tidebound-wordmark span { font-size: 23px; }
  .tidebound-sigil { width: 28px; height: 28px; }
  .tidebound-story { left: 24px; right: 24px; bottom: 24px; }
  .tidebound-chapter { margin-bottom: 10px; font-size: 11px; }
  #login .tidebound-story h1 { font-size: 34px; max-width: 320px; margin-bottom: 0; }
  .tidebound-story p:last-of-type, .tidebound-illustration { display: none; }
  .tidebound-entry { padding: 30px 26px 25px; }
  .tidebound-entry::before { display: none; }
  #login .tidebound-entry h2 { font-size: 29px; }
  #login .tidebound-entry .tagline { margin-bottom: 25px; }
  #login.tidebound-login #login-user, #login.tidebound-login #login-token { margin-bottom: 20px; }
  .tidebound-entry-footer { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { #login.tidebound-login * { transition: none; } }
