:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --ink: #f6f3eb;
  --muted: #c0c2bc;
  --red: #d83b31;
  --yellow: #f0c438;
  --panel: #151816;
  --line: #626862;
  --focus: #f5d35f;
}

* { box-sizing: border-box; }
body { min-width: 300px; min-height: 100dvh; margin: 0; overflow-x: hidden; background: #0a0c0b; color: var(--ink); }
.login-shell { display: grid; min-width: 0; min-height: 100dvh; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr); }
.login-brand,
.login-panel { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 5.5rem); }
.login-brand { position: relative; isolation: isolate; overflow: hidden; background: #101210 url("./assets/images/venueops-portal-hero.jpg") 54% center / cover; }
.login-brand::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(7 9 8 / .95), rgb(7 9 8 / .68) 62%, rgb(7 9 8 / .35)), linear-gradient(0deg, rgb(7 9 8 / .55), transparent 48%); content: ""; }
.login-brand::after { position: absolute; right: 0; bottom: clamp(2rem, 6vw, 6rem); width: clamp(52px, 7vw, 94px); height: 3px; background: var(--red); content: ""; }
.login-brand > * { width: 100%; max-width: 640px; }
.login-brand > img { width: min(236px, 46vw); margin-bottom: clamp(3rem, 9vh, 7rem); filter: drop-shadow(0 12px 28px rgb(0 0 0 / .38)); }
.login-eyebrow { margin: 0 0 .65rem; color: var(--yellow); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1,
h2 { margin: 0; line-height: .94; letter-spacing: -.06em; }
h1 { max-width: 8ch; font-size: clamp(4.5rem, 8.8vw, 8.5rem); }
h1 span { display: block; }
h2 { font-size: clamp(2.8rem, 5vw, 4.8rem); }
p { margin-top: .85rem; color: var(--muted); line-height: 1.55; }
.login-warning { display: grid; max-width: 520px; gap: .25rem; margin-top: 1.5rem; padding: .9rem 1rem; border-left: 3px solid var(--yellow); background: rgb(0 0 0 / .32); }
.login-warning span { color: var(--muted); }
.login-panel { gap: 1.8rem; border-left: 1px solid #343935; background: var(--panel); }
.login-panel-heading p { margin-bottom: 0; }
.login-panel-logo { display: none; width: 118px; height: auto; margin-bottom: 1.4rem; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .45rem; color: var(--ink); font-weight: 850; }
select,
input,
button { width: 100%; min-height: 56px; border-radius: 10px; font: inherit; font-size: 1rem; }
select,
input { padding: 0 1rem; border: 1px solid var(--line); background: #0d100e; color: var(--ink); }
select:focus-visible,
input:focus-visible,
button:focus-visible,
.guest-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button { margin-top: .25rem; border: 1px solid var(--red); background: var(--red); color: #fffaf5; cursor: pointer; font-weight: 900; }
button:hover { background: #ed5147; }
.login-status { min-height: 1.5em; margin: 0; color: #ff9c94; font-weight: 750; }
.guest-link { width: fit-content; color: var(--ink); font-weight: 800; text-underline-offset: .3em; }

@media (max-width: 760px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); }
  .login-panel { order: -1; min-height: 100svh; gap: 1.15rem; padding: 22px clamp(18px, 6vw, 34px); border-left: 0; }
  .login-panel-logo { display: block; }
  .login-panel-heading p { margin-top: .55rem; }
  .login-panel h2 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .login-panel form { gap: .75rem; }
  .login-panel select,
  .login-panel input,
  .login-panel button { min-height: 52px; }
  .login-brand { min-height: 560px; padding: 42px 22px; }
  .login-brand > img { width: 160px; margin-bottom: 3rem; }
  .login-brand h1 { max-width: 100%; font-size: clamp(3.5rem, 18vw, 5rem); }
}

@media (max-width: 360px) {
  .login-panel { padding-block: 16px; }
  .login-panel-logo { width: 102px; margin-bottom: .8rem; }
  .login-panel h2 { font-size: 2.55rem; }
  .login-panel-heading p { font-size: .9rem; }
  .login-panel form { gap: .6rem; }
  .login-panel select,
  .login-panel input,
  .login-panel button { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
