/* UNITED ECHOES — header login menu, Admin button, phone menu account rows, and the Team login page.
   Site tokens only (style.css), so the light theme (default) and the dark theme both follow them. */

/* ---- Header (laptops, 900px and wider): Admin button + "Login / Register" dropdown ---------------------- */
.nav-admin, .login-menu { display: none; }
.login-menu { position: relative; }
.login-menu-btn .icon { transition: transform .15s ease; }
.login-menu.is-open .login-menu-btn .icon { transform: rotate(180deg); }
.login-menu-list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; width: 320px; margin: 0; padding: .4rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--shadow-float);
}
.login-menu-list[hidden] { display: none; }
.login-menu-sep { height: 1px; margin: .35rem .5rem; background: var(--line); }
.login-opt {
  display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .6rem .7rem; border-radius: var(--r-sm);
  color: var(--text); text-decoration: none; outline: none;
}
.login-opt:hover, .login-opt:focus-visible { background: var(--hover); color: var(--text); }
.login-opt:focus-visible { box-shadow: inset 0 0 0 2px var(--btn-focus); }
.login-opt-ic { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-text); }
.login-opt.is-team .login-opt-ic { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.login-opt-text { display: grid; gap: 1px; min-width: 0; text-align: left; }
.login-opt-title { font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.login-opt-hint { font-size: .8125rem; line-height: 1.35; color: var(--text-muted); }
@media (min-width: 900px) {
  .nav-admin { display: inline-flex; }
  .login-menu { display: block; }
  .nav-acct { display: none; }
}
@media (min-width: 900px) and (max-width: 1080px) {
  .nav-links { margin-left: .5rem; }
  .nav-links a { padding: 0 .6rem; }
}

/* ---- Phone and tablet menu panel: "Clients" and "Team" groups ------------------------------------------- */
.nav-acct { display: grid; gap: .5rem; }
@media (min-width: 900px) { .nav-acct { display: none; } }
.nav-acct-title { margin: .5rem 0 0; font-size: .8125rem; font-weight: 600; color: var(--text-muted); }
.nav-acct-title:first-child { margin-top: 0; }
.nav-acct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.nav-acct-row { min-height: 64px; padding: .7rem .9rem; border: 1px solid var(--line); background: var(--surface); }
.nav-acct-row .login-opt-text { flex: 1; }
.nav-acct-row > .icon { flex: none; color: var(--text-muted); transform: rotate(-90deg); }
.nav-acct-row .login-opt-title { font-size: 1rem; }
.nav-acct-admin { gap: .5rem; }
.nav-acct-hint { margin: -.15rem 0 0; font-size: .8125rem; color: var(--text-muted); text-align: center; }

/* ---- Team login page ------------------------------------------------------------------------------------ */
.team-login-body { background: var(--bg); }
.team-login-body .corner-theme { position: absolute; top: 0; right: 0; z-index: 3; padding-top: calc(env(safe-area-inset-top, 0px) + .5rem); }   /* button: 8px from the top, 44px tall */
.team-auth {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  min-height: 100vh; min-height: 100dvh; padding: calc(env(safe-area-inset-top, 0px) + 4.5rem) 1rem 2rem;   /* room for the theme button (8px + 44px) and a gap */
  place-items: stretch center;
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(118, 58, 237, .20), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, rgba(118, 58, 237, .10), transparent 70%),
    var(--bg);
}
/* A quiet equaliser along the bottom: the music in "United Echoes" */
.team-auth-bg { position: absolute; inset: auto 0 0 0; z-index: -1; height: 42vh; display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 1.6vw, 14px); padding-inline: 4vw; opacity: .5; pointer-events: none; }
.team-auth-bg span { flex: 1; max-width: 46px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, rgba(118, 58, 237, .32), rgba(118, 58, 237, .04)); }
.team-auth-bg span:nth-child(1) { height: 22%; } .team-auth-bg span:nth-child(2) { height: 46%; } .team-auth-bg span:nth-child(3) { height: 30%; }
.team-auth-bg span:nth-child(4) { height: 64%; } .team-auth-bg span:nth-child(5) { height: 40%; } .team-auth-bg span:nth-child(6) { height: 82%; }
.team-auth-bg span:nth-child(7) { height: 56%; } .team-auth-bg span:nth-child(8) { height: 74%; } .team-auth-bg span:nth-child(9) { height: 34%; }
.team-auth-bg span:nth-child(10) { height: 58%; } .team-auth-bg span:nth-child(11) { height: 26%; } .team-auth-bg span:nth-child(12) { height: 44%; }
.team-card {
  width: 100%; max-width: 440px; padding: clamp(1.25rem, 5vw, 2.25rem);
  margin-block: auto;   /* centred when there is room; when the card is taller than the screen it starts below the theme button instead of sliding under it */
  background: var(--surface); border: 1px solid var(--brand-line, var(--line)); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -28px rgba(75, 31, 184, .45), var(--shadow-float);
}
.team-card .brand { display: inline-flex; margin-bottom: 1.25rem; }
.team-card .brand .logo-img { height: 44px; }
.team-badge { display: flex; width: fit-content; align-items: center; gap: .35rem; margin: 0 0 .6rem; padding: .25rem .65rem; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand-text); font-size: .8125rem; font-weight: 600; }
.team-card h1 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 5vw, 2rem); }
.team-card > .muted { margin-bottom: 1.25rem; }
.team-form .input { font-size: 1rem; min-height: 48px; }
.team-form .form-actions .btn { width: 100%; }
.team-help { display: flex; gap: .55rem; align-items: flex-start; margin: 1.25rem 0 0; padding: .7rem .8rem; border-radius: var(--r-sm); background: var(--surface-2); font-size: .875rem; color: var(--text-muted); }
.team-help .icon { flex: none; margin-top: .15rem; color: var(--brand-text); }
.team-help strong { color: var(--text); font-weight: 600; }
.team-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .5rem; margin: 1rem 0 0; font-size: .9375rem; color: var(--text-muted); }
.team-switch .btn { min-height: 44px; }
@media (max-width: 480px) {
  .team-auth { padding: calc(env(safe-area-inset-top, 0px) + 4rem) .75rem 1.5rem; }   /* the card starts 12px below the theme button */
  .team-card { padding: 1.25rem 1.1rem 1.4rem; }
  .team-card .brand { margin-bottom: .9rem; }
  .team-card .brand .logo-img { height: 38px; }
  .team-card > .muted { margin-bottom: 1rem; }
  .team-auth-bg { height: 30vh; opacity: .35; }
}
@media (prefers-reduced-motion: reduce) { .login-menu-btn .icon { transition: none; } }
@media print { .nav-admin, .login-menu, .nav-acct { display: none !important; } }
/* Short phone screens: keep "Log in" above the on-screen keyboard */
@media (max-width: 480px) and (max-height: 760px) {
  .team-badge { display: none; }
  .team-card .brand { margin-bottom: .6rem; }
  .team-card .brand .logo-img { height: 32px; }
  .team-card h1 { font-size: 1.5rem; }
  .team-card > .muted { margin-bottom: .75rem; }
}
