/* PARUNO v0.1.4: cinematic desktop showcase; unchanged lightweight mobile login. */
.auth-gallery,.auth-showcase{display:none}
@media (min-width:900px){
  body:has(#authScreen:not([hidden])){background:#090f20}
  body:has(#authScreen:not([hidden])) .ambient{display:none}
  .auth-screen{width:100%;max-width:none;min-height:calc(100dvh - 72px)!important;display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,435px);gap:clamp(34px,5.3vw,110px);align-items:center;padding:clamp(30px,4.3vw,78px);isolation:isolate;overflow:hidden;position:relative;margin:0}
  .auth-gallery{position:absolute;inset:0;z-index:0;display:block;overflow:hidden;background:#121d30}
  .auth-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transform:scale(1.035);transition:opacity 1s ease,transform 8.2s ease;pointer-events:none}
  .auth-slide.is-active{opacity:1;transform:scale(1);z-index:1}
  .auth-gallery-shade{position:absolute;inset:0;z-index:2;background:linear-gradient(90deg,rgba(7,13,32,.82) 0%,rgba(8,14,31,.55) 37%,rgba(8,12,26,.34) 55%,rgba(8,11,24,.72) 100%),linear-gradient(0deg,rgba(7,12,27,.94),transparent 46%,rgba(8,14,28,.14));pointer-events:none}
  .auth-showcase{display:flex;flex-direction:column;align-self:stretch;justify-content:space-between;gap:26px;min-width:0;z-index:1;position:relative;color:#f8fbff}
  .showcase-top{display:flex;align-items:center;gap:10px;white-space:nowrap;max-width:100%}
  .showcase-logo{width:45px;height:45px;object-fit:contain;filter:drop-shadow(0 6px 12px #080d25a8)}
  .showcase-word{font-size:19px;font-weight:850;letter-spacing:.08em;text-shadow:0 3px 10px #000b}
  .showcase-by{font-size:9px;letter-spacing:.17em;color:#d6e2f8;border-left:1px solid #ffffff58;padding-left:12px;margin-left:9px;font-weight:700}
  .showcase-bottom{max-width:700px;margin-bottom:clamp(2px,4vh,47px)}
  .showcase-pill{display:inline-flex;gap:10px;align-items:center;color:#c1f3f4;font-size:10px;font-weight:800;letter-spacing:.22em;border:1px solid #c1fbf65e;border-radius:99px;background:#0b1e35b8;padding:10px 15px;backdrop-filter:blur(10px)}
  .showcase-pulse{background:#85eddb;width:8px;height:8px;box-shadow:0 0 13px #2cebb7;border-radius:50%}
  .auth-showcase h2{font-size:clamp(39px,4.9vw,78px);line-height:1.02;letter-spacing:-.064em;text-shadow:0 10px 30px #030b1e99;margin:25px 0 17px;font-weight:850}
  .auth-showcase h2 em{background:linear-gradient(100deg,#b5f2ff,#e6b9ff 58%,#f9d7bc);background-clip:text;-webkit-background-clip:text;color:transparent}
  .auth-showcase p{max-width:470px;color:#e0e8f6;font-size:clamp(13px,1.15vw,17px);line-height:1.7;text-shadow:0 3px 9px #000b;margin:0 0 21px}
  .showcase-facts{display:flex;gap:8px;flex-wrap:wrap;max-width:660px}
  .showcase-facts span{border:1px solid #d5eaff45;border-radius:30px;padding:8px 11px;color:#e0f5ff;background:#07152b80;font-size:10px;font-weight:750;backdrop-filter:blur(10px)}
  .showcase-carousel{margin-top:26px;display:flex;align-items:center;gap:8px}
  .slide-dots{display:flex;align-items:center;gap:7px;margin-right:16px}
  .slide-dot{padding:0;width:8px;height:8px;border-radius:12px;background:#f1f8ff75;border:0;transition:width .24s ease,background .24s ease}
  .slide-dot.is-active{width:26px;background:#91eff5;box-shadow:0 0 14px #5dd7f4aa}
  .slide-arrow,.slide-play{border:1px solid #e0eeff61;background:#07172f85;color:#f3f7ff;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;backdrop-filter:blur(8px);font-size:22px;line-height:1}
  .slide-play{font-size:12px}
  .slide-arrow:hover,.slide-play:hover,.slide-dot:hover{background:#28718c;color:white}
  .slide-arrow:focus-visible,.slide-play:focus-visible,.slide-dot:focus-visible{outline:2px solid #8ceef3;outline-offset:3px}
  .auth-screen>.auth-card{max-width:435px;width:100%;padding:clamp(28px,3vw,43px)!important;border-radius:28px;border:1px solid #e4edff2c;background:linear-gradient(153deg,rgba(18,29,52,.92),rgba(9,17,32,.94));box-shadow:0 32px 90px #000b,0 0 1px #f7ffff80;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);z-index:1;justify-self:end}
  .auth-card h1{font-size:clamp(29px,2.7vw,40px);margin:17px 0 12px}
  .auth-card .auth-subtitle{font-size:12.5px;margin-bottom:23px}
  .auth-card .auth-logo{width:59px;height:59px;margin-bottom:8px}
  .auth-screen>.auth-art{display:none}
}
@media (min-width:900px) and (max-height:740px){
  .auth-screen{padding-top:21px;padding-bottom:21px;min-height:700px!important}
  .showcase-bottom{margin-bottom:0}.auth-showcase h2{font-size:clamp(37px,4.4vw,65px);margin-top:14px}.showcase-carousel{margin-top:14px}
}
@media (max-width:899px){
  .auth-gallery,.auth-showcase{display:none!important}
  .auth-screen{grid-template-columns:1fr!important;max-width:480px!important;width:calc(100% - 42px)!important;gap:0!important;min-height:calc(100dvh - 116px)!important;padding-block:20px!important}
  .auth-screen>.auth-card{max-width:100%;padding:20px 0 14px}
  .auth-screen>.auth-art{display:none}
}
@media (prefers-reduced-motion:reduce){.auth-slide{transition:none!important;transform:none!important}}

/* 0.2.2 — Responsive login and signup, no nested scrolling. */
@media (min-width:900px){
 body:has(#authScreen:not([hidden])){overflow-x:hidden;overflow-y:auto}
 .auth-screen,.auth-screen>.auth-card{box-sizing:border-box}
 .auth-screen{width:100%;max-width:none;min-height:calc(100dvh - 65px)!important;height:auto;margin:0;grid-template-columns:minmax(0,1fr) minmax(420px,510px);gap:clamp(22px,4vw,75px);padding:20px clamp(24px,4vw,76px)!important;overflow:hidden!important;align-items:center}
 .auth-screen>.auth-card{width:100%;max-width:510px!important;max-height:none!important;min-height:0;overflow:visible!important;padding:clamp(23px,2.2vw,32px) clamp(26px,2.8vw,42px)!important;border-radius:24px}
 .auth-showcase{justify-content:space-between}
 .showcase-bottom{margin-bottom:5px}
 .auth-showcase h2{font-size:clamp(34px,4vw,65px);margin:12px 0 12px;line-height:1.07}
 .auth-showcase p{line-height:1.45;margin-bottom:14px;font-size:clamp(12px,1vw,15px)}
 .showcase-carousel{margin-top:15px}
}
.auth-card .language-picker{margin-bottom:10px}
.auth-brand{display:flex;align-items:center;gap:12px;margin:0 0 18px}
.auth-brand .auth-logo{width:48px!important;height:48px!important;margin:0!important;flex:0 0 auto}
.auth-brand .brand-name{display:block;font-size:27px;line-height:1;font-weight:850;letter-spacing:-.07em;margin:0 0 5px}
.auth-brand-caption{display:block;font-size:9px;font-weight:800;letter-spacing:.13em;color:#9baacc}
.auth-kicker{color:#88d7e8;font-size:10px;font-weight:800;letter-spacing:.13em;margin:0 0 8px}
.auth-card .auth-intro h1{font-size:clamp(27px,2.6vw,36px)!important;line-height:1.15;margin:0 0 8px!important;letter-spacing:-.045em}
.auth-card .auth-subtitle{font-size:12.5px!important;line-height:1.5;margin:0 0 22px!important}
.auth-card .auth-form{gap:10px!important}
.auth-card .auth-step{display:grid;gap:8px}
.auth-card .auth-step[hidden]{display:none!important}
.auth-card .auth-form label{font-size:12px}
.auth-card .auth-form input{height:46px!important;border-radius:11px!important}
.auth-card .auth-submit{width:100%;justify-content:center;min-height:48px;padding:12px 17px;margin:5px 0 0;font-weight:800}
.auth-card .auth-secondary-action{justify-self:center;font-size:12px;margin:3px 0 0;padding:4px 8px}
.auth-card .auth-code-intro{font-size:12px;line-height:1.6;margin:1px 0 5px;color:#bac9df}
.auth-card .auth-mini-note{margin:4px 0 0;font-size:11px;color:#a7b6d2;line-height:1.5}
.auth-card .google-auth-section{margin:20px 0 0!important}
.auth-card .google-divider{display:flex;gap:14px;align-items:center;justify-content:center;color:#acb9d0;margin:0 0 14px!important;font-size:12px}
.auth-card .google-divider:before,.auth-card .google-divider:after{content:"";display:block;height:1px;flex:1;background:#ffffff25}
.auth-card .google-button-host{display:flex;width:100%;min-height:44px;align-items:center;justify-content:center}
.auth-card .google-button-host>div{max-width:100%;margin:auto}
.auth-card .google-unconfigured{width:100%;max-width:344px;min-height:44px;border-radius:10px;background:#fff;color:#25324d;border:1px solid #cad2e0;font-weight:650;cursor:pointer;font-size:13px}
.auth-card .auth-switch{text-align:center;font-size:12.5px;color:#bac5d8;margin:21px 0 0}
.auth-card .auth-switch a{color:#a8e6f1;font-weight:800;text-decoration:none;margin-left:4px}
.auth-card .auth-switch a:hover,.auth-card .auth-switch a:focus-visible{text-decoration:underline}
@media (min-width:900px) and (max-height:780px){
 .auth-screen{padding-block:13px!important}
 .auth-card .auth-brand{margin-bottom:12px}
 .auth-card .auth-subtitle{margin-bottom:13px!important}
 .auth-card .google-auth-section{margin-top:14px!important}
 .auth-card .auth-switch{margin-top:14px}
 .auth-screen>.auth-card{padding-block:19px!important}
 .auth-showcase h2{font-size:clamp(33px,3.5vw,55px)}
 .showcase-facts{gap:6px}
 .showcase-carousel{margin-top:9px}
}
@media (max-width:899px){
 body:has(#authScreen:not([hidden])){overflow-y:auto}
 .auth-screen{display:block!important;width:min(100% - 36px,490px)!important;max-width:490px!important;min-height:calc(100dvh - 120px)!important;padding:18px 0 24px!important;overflow:visible!important;margin:auto}
 .auth-screen>.auth-card{max-width:100%!important;max-height:none!important;overflow:visible!important;padding:15px 10px 25px!important}
 .auth-brand{margin-bottom:16px}
 .auth-card .auth-intro h1{font-size:30px!important}
 .auth-card .auth-subtitle{margin-bottom:20px!important}
}

#authScreen[hidden]{display:none!important}

/* Keep login and registration within a normal 768px desktop viewport. */
@media (min-width:900px){
 .auth-screen{min-height:calc(100dvh - 76px)!important}
 .auth-card--signup .auth-brand{margin-bottom:10px}
 .auth-card--signup .auth-subtitle{margin-bottom:8px!important}
 .auth-card--signup .auth-mini-note{font-size:10.5px;line-height:1.35}
 .auth-card--signup .google-auth-section{margin-top:11px!important}
 .auth-card--signup .auth-switch{margin-top:12px}
 .auth-card--signup .auth-form input{height:42px!important}
}
@media (min-width:900px) and (max-height:760px){
 .auth-screen>.auth-card--signup{padding-block:14px!important}
 .auth-card--signup .auth-brand{margin-bottom:5px}
 .auth-card--signup .auth-step{gap:6px}
 .auth-card--signup .auth-form input{height:40px!important}
 .auth-card--signup .auth-switch{margin-top:8px}
}

/* 0.2.7: keep the Google SDK's standard button inside the auth card.
   The SDK must measure an already-visible host (see app.js/signup.js). */
.auth-card .google-button-host{min-width:0;max-width:100%;overflow:visible;}
.auth-card .google-button-host>div{max-width:100%;}
