/* Recovered approved login placement, scoped to the existing auth overlay.
   Source: desktop-login-minimal-preview version 2. No changes to Studio. */
#authGate{padding:32px 14px 30px}
#authGate :is(.auth-art,.auth-intro,.auth-panel,.auth-footer){width:min(860px,100%);margin-left:auto;margin-right:auto}
#authGate .auth-art{margin-top:0;margin-bottom:36px}
#authGate .auth-art img{display:block;width:100%;height:auto;aspect-ratio:1536/706}
#authGate .auth-modes{flex-wrap:wrap}
#authGate .auth-modes button,#authGate .auth-links button{padding:9px 17px;min-height:36px;cursor:pointer}
#authGate .auth-form input{min-width:0;min-height:44px;opacity:1;-webkit-text-fill-color:#111}
#authGate .auth-form input::placeholder{color:#757575;opacity:1;-webkit-text-fill-color:#757575}
#authGate .auth-form input:focus{outline:2px solid #777;outline-offset:2px}
#authGate .auth-form .primary{justify-self:start;color:#243c51;padding:9px 18px;min-height:36px;cursor:pointer}
#authGate .auth-message{font:16px/1.35 Arial,sans-serif;min-height:22px;margin:22px 0 0;color:#555}
#authGate .auth-message.error{color:#9a0000}
#authGate .auth-privacy{max-width:700px;margin:36px 0 0;font:clamp(19px,4.4vw,25px)/1.42 "Times New Roman",Times,serif}
#authGate .auth-footer{margin-top:28px;display:flex;justify-content:center}
#authGate .auth-footer img{display:block;width:min(320px,80%);height:auto;aspect-ratio:1672/941;filter:brightness(0)}
#authGate button:focus-visible,#authGate select:focus-visible{outline:2px solid #555;outline-offset:3px}
@media(min-width:760px){#authGate .auth-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:520px){#authGate{padding-top:20px}#authGate .auth-art{margin-bottom:28px}#authGate .auth-footer{margin-top:16px}}

/* Approved desktop layout begins at 960px. */
@media (min-width: 960px) {
  #authGate {
    width: 100%; margin: 0; padding: 48px 24px 32px;
    color: #191919; background: #fff;
  }
  #authGate > .auth-art {
    width: 320px; max-width: 100%; margin: 0 auto 28px;
  }
  #authGate > .auth-art img {
    display: block; width: 100%; height: auto; aspect-ratio: 1536 / 706;
  }
  #authGate > .auth-intro { display: none; }
  #authGate > .auth-panel {
    width: 340px; max-width: 100%; margin: 0 auto; padding: 0;
  }
  #authGate .auth-modes {
    display: flex; justify-content: center; gap: 24px; margin: 0 0 24px;
  }
  #authGate .auth-modes button {
    appearance: none; min-height: 32px; padding: 0 0 7px;
    border: 0; border-bottom: 1px solid transparent; border-radius: 0;
    background: transparent; color: #777; font: 400 12px/1.5 Arial, sans-serif;
  }
  #authGate .auth-modes button:is(.active, [aria-selected="true"]) {
    border-bottom-color: #222; background: transparent; color: #191919;
  }
  #authGate .auth-panel h2 {
    margin: 0 0 8px; color: #191919; text-align: center;
    font: 400 26px/1.2 "Times New Roman", Times, serif; letter-spacing: -.35px;
  }
  #authGate #authDescription {
    margin: 0 0 26px; color: #707070; text-align: center;
    font: 400 12px/1.5 Arial, sans-serif;
  }
  #authGate .auth-form { display: block; width: 100%; max-width: none; }
  #authGate .auth-form label {
    display: block; margin: 0 0 18px; color: #333;
    font: 400 12px/1.5 Arial, sans-serif;
  }
  #authGate .auth-form input {
    display: block; width: 100%; max-width: none; min-width: 0;
    min-height: 40px; margin-top: 7px; padding: 9px 11px;
    border: 1px solid #dcdcdc; border-radius: 3px; background: #fff;
    color: #191919; font: 400 13px/20px Arial, sans-serif; -webkit-text-fill-color: #191919;
    box-shadow: none; opacity: 1;
  }
  #authGate .auth-form input::placeholder { color: #888; opacity: 1; -webkit-text-fill-color: #888; }
  #authGate .auth-form input:focus { outline: 2px solid #737373; outline-offset: 2px; }
  #authGate button:focus-visible,
  #authGate a:focus-visible,
  #authGate input:focus-visible,
  #authGate select:focus-visible { outline: 2px solid #555; outline-offset: 3px; }
  #authGate .auth-form small {
    margin-top: 7px; color: #737373; font: 400 11px/1.5 Arial, sans-serif;
  }
  #authGate .auth-form .guest-name-error { color: #9a0000; }
  #authGate .auth-form .primary {
    appearance: none; display: block; width: 100%; min-height: 40px;
    margin-top: 24px; padding: 10px 12px; border: 0; border-radius: 3px;
    background: #1a1a1a; color: #fff; font: 400 12px/20px Arial, sans-serif;
  }
  #authGate .auth-form .primary:disabled { background: #666; cursor: wait; }
  #authGate .auth-links { justify-content: center; gap: 16px; margin-top: 7px; }
  #authGate .auth-links button,
  #authGate .auth-reload {
    min-height: 32px; padding: 6px 0; border: 0; border-radius: 0;
    background: transparent; color: #707070; font: 400 11px/20px Arial, sans-serif;
  }
  #authGate .auth-message {
    min-height: 0; margin: 14px 0 0; color: #555; font: 400 12px/1.5 Arial, sans-serif;
  }
  #authGate .auth-message:empty { display: none; }
  #authGate .auth-message.error { color: #9a0000; }
  #authGate .auth-privacy {
    width: 100%; max-width: none; margin: 28px 0 0;
    color: #7b7b7b; font: 400 10px/1.65 Arial, sans-serif; text-align: center;
  }
  #authGate > .auth-footer {
    display: flex; justify-content: center; width: 144px; margin: 18px auto 0;
  }
  #authGate > .auth-footer img {
    display: block; width: 144px; max-width: 100%; height: auto;
    aspect-ratio: 1672 / 941; filter: brightness(0);
  }
}
