/* Site-wide log in / sign up (Views/Shared/_Layout.cshtml + wwwroot/js/auth.js), Oct 29.
   Also keeps the header on screen, so links like /Discography#wall don't scroll it away. */
html { scroll-padding-top: 96px; }
body > .mtr-bg { overflow: hidden; overflow: clip; }          /* clip (not hidden) lets the header stick */
body .mtr-bg > header { position: sticky; top: 0; z-index: 900; } /* under the page's own pop-ups (1000+) */

.mtr-auth { position: relative; margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.mtr-cart-link { font-family: 'Bebas Neue', 'GenericG50', system-ui, sans-serif; font-size: 1.15rem; letter-spacing: .08em; color: #FCFBF9 !important; text-decoration: none; white-space: nowrap; }
.mtr-cart-link:hover { color: #2fb8f0 !important; }
.mtr-cart-link[hidden] { display: none; }
.mtr-auth-btn { font-family: 'Bebas Neue', 'GenericG50', system-ui, sans-serif; font-size: 1.15rem; letter-spacing: .08em;
  background: none; border: 1px solid #2fb8f0; color: #2fb8f0; border-radius: 3px; padding: .25rem .9rem; cursor: pointer; white-space: nowrap; }
.mtr-auth-btn:hover { background: rgba(47,184,240,.12); }
.mtr-auth-btn.is-in { border-color: #1f2740; color: #FCFBF9; }
.mtr-auth-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: #090c14;
  border: 1px solid #1f2740; border-radius: 4px; padding: .35rem 0; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 950; }
.mtr-auth-menu.open { display: block; }
.mtr-auth-menu a, .mtr-auth-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #FCFBF9;
  font-family: 'GenericG50', system-ui, sans-serif; font-size: .95rem; padding: .45rem 1rem; text-decoration: none; cursor: pointer; }
.mtr-auth-menu a:hover, .mtr-auth-menu button:hover { background: #121829; color: #2fb8f0; }

.mtr-login-overlay { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(3,4,10,.82); }
.mtr-login-overlay.open { display: flex; }
.mtr-login { box-sizing: border-box; position: relative; width: 100%; max-width: 380px; background: #090c14; border: 1px solid #1f2740; border-radius: 6px;
  padding: 1.6rem 1.5rem 1.4rem; color: #FCFBF9; font-family: 'GenericG50', system-ui, sans-serif; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.mtr-login h2 { font-family: 'Bebas Neue', 'GenericG50', system-ui, sans-serif; font-weight: 400; font-size: 2.2rem; letter-spacing: .04em; margin: 0 0 .2rem; }
.mtr-login .sub { color: #9ba3c0; font-size: .85rem; margin: 0 0 1rem; }
.mtr-login .tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.mtr-login .tabs button { flex: 1; font-family: 'Bebas Neue', 'GenericG50', system-ui, sans-serif; font-size: 1.15rem; letter-spacing: .08em;
  background: none; border: 1px solid #1f2740; color: #9ba3c0; border-radius: 3px; padding: .3rem; cursor: pointer; }
.mtr-login .tabs button.active { border-color: #2fb8f0; color: #2fb8f0; }
.mtr-login label { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #9ba3c0; margin: .7rem 0 .3rem; }
.mtr-login input { box-sizing: border-box; width: 100%; background: #0e1118; color: #FCFBF9; border: 1px solid #2a3040; border-radius: 3px; padding: .55rem .7rem; font-size: 1rem; }
.mtr-login input:focus { outline: none; border-color: #2fb8f0; }
.mtr-login .go { width: 100%; margin-top: 1.1rem; font-family: 'Bebas Neue', 'GenericG50', system-ui, sans-serif; font-size: 1.35rem; letter-spacing: .1em;
  background: #2fb8f0; color: #05060a; border: 0; border-radius: 3px; padding: .45rem; cursor: pointer; }
.mtr-login .go:disabled { opacity: .6; cursor: default; }
.mtr-login .err { color: #ff7d9c; font-size: .85rem; min-height: 1.2em; margin-top: .7rem; }
.mtr-login .x { position: absolute; top: .5rem; right: .7rem; background: none; border: 0; color: #9ba3c0; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mtr-login .x:hover { color: #FCFBF9; }
.mtr-login .fine { color: #6c7494; font-size: .75rem; margin-top: .8rem; text-align: center; }

/* inside the phone app's web view (?app=1): no site header or footer, the app has its own */
body.in-app .mtr-bg > header, body.in-app .mtr-site-footer { display: none; }
body.in-app .mtr-artists { margin-top: 1rem; }
