/* Site-wide account UI: login/signup modal + nav button.
   Self-contained — literal colours so it works on every page regardless of
   that page's own CSS variables. Mirrors the auth styles in arcade.css. */
.auth-area{display:inline-flex;align-items:center;gap:0.6rem;}
.auth-user{color:#7d8bb0;font-size:0.9rem;}
.auth-user strong{color:#e6f7ff;}
.auth-btn{
  font-family:inherit;font-size:0.85rem;font-weight:600;cursor:pointer;
  color:#e6f7ff;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.12);
  padding:0.5rem 1rem;border-radius:50px;transition:background .25s,border-color .25s,transform .2s;
}
.auth-btn:hover{background:rgba(255,255,255,0.10);border-color:#19e6e6;transform:translateY(-1px);}
.auth-btn.primary{background:linear-gradient(135deg,#19e6e6,#72fdff);border-color:transparent;color:#04121a;}

.auth-modal{position:fixed;inset:0;z-index:4000;display:grid;place-items:center;padding:1.2rem;}
.auth-modal[hidden]{display:none;}
.auth-backdrop{position:absolute;inset:0;background:rgba(5,5,12,0.78);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);}
.auth-card{
  position:relative;width:min(94vw,380px);
  background:linear-gradient(160deg,#0c162a,#080d18);border:1px solid rgba(255,255,255,0.12);
  border-radius:18px;box-shadow:0 25px 60px rgba(0,0,0,0.55);padding:1.6rem 1.5rem 1.7rem;
}
.auth-close{
  position:absolute;top:0.7rem;right:0.8rem;width:34px;height:34px;
  background:none;border:0;color:#7d8bb0;font-size:1.6rem;line-height:1;cursor:pointer;border-radius:50%;
}
.auth-close:hover{color:#e6f7ff;background:rgba(255,255,255,0.05);}
.auth-tabs{display:flex;gap:0.4rem;background:rgba(255,255,255,0.05);border-radius:50px;padding:0.3rem;margin-bottom:1.3rem;}
.auth-tab{
  flex:1;font-family:inherit;font-size:0.9rem;font-weight:600;cursor:pointer;
  color:#7d8bb0;background:transparent;border:0;padding:0.55rem;border-radius:50px;transition:background .25s,color .25s;
}
.auth-tab.active{background:linear-gradient(135deg,#19e6e6,#72fdff);color:#04121a;}
.auth-field{display:block;margin-bottom:0.9rem;}
.auth-field span{display:block;font-size:0.78rem;text-transform:uppercase;letter-spacing:0.08em;color:#7d8bb0;margin-bottom:0.35rem;}
.auth-field input{
  width:100%;font-family:inherit;font-size:1rem;color:#e6f7ff;
  background:rgba(0,0,0,0.25);border:1px solid rgba(255,255,255,0.12);border-radius:12px;padding:0.7rem 0.85rem;transition:border-color .25s;
}
.auth-field input:focus{outline:none;border-color:#19e6e6;}
.auth-error{color:#ff5fb0;font-size:0.85rem;margin:0 0 0.9rem;}
/* Submit button: works even on pages that don't define .btn (e.g. the splash). */
.auth-submit{width:100%;display:inline-block;text-align:center;font-family:inherit;font-size:1rem;font-weight:600;
  cursor:pointer;padding:0.8rem 1rem;border-radius:50px;border:1px solid transparent;
  background:linear-gradient(135deg,#19e6e6,#72fdff);color:#04121a;}
.auth-submit:disabled{opacity:.6;cursor:default;}
@media (max-width:540px){.auth-user{display:none;}}
