@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #08090e;
  --line: rgba(221, 231, 243, .12);
  --text: #f4f5f7;
  --muted: #9299a6;
  --orange-soft: rgba(255, 88, 120, .16);
  --blue: #70d5ee;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Space Grotesk', 'Manrope', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background: var(--bg) url('/lmu-endurance-background.webp') center / cover fixed no-repeat;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,7,13,.94), rgba(7,8,15,.75) 32%, rgba(8,7,14,.82) 68%, rgba(8,10,15,.98)),
    linear-gradient(90deg, rgba(255,42,94,.14), transparent 50%, rgba(255,42,94,.09));
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 72%, rgba(75,176,233,.10), transparent 30%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }

.login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 48px;
}
.login-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c7d2d7;
  font: 500 10px var(--mono);
  letter-spacing: .15em;
}
.brand b { color: var(--text); font-weight: 600; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,141,69,.4);
  background: var(--orange-soft);
  transform: rotate(-6deg);
}
.brand-mark img { width: 22px; height: 22px; transform: rotate(6deg); }

.login-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  align-items: center;
  gap: clamp(58px, 9vw, 120px);
  padding: 64px 0;
}
.login-intro { min-width: 0; }
.login-intro h1 {
  max-width: 720px;
  font: 500 clamp(54px, 7vw, 86px)/.94 var(--display);
  letter-spacing: -.065em;
  text-wrap: balance;
}
.login-intro h1 em {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-style: normal;
}

.login-card {
  padding: 36px 32px 32px;
  border: 1px solid rgba(221,231,243,.14);
  background: rgba(10,13,20,.96);
  box-shadow: 0 24px 70px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.025);
}
.login-card h2 {
  font: 500 34px/1 var(--display);
  letter-spacing: -.045em;
}
.login-card > p { margin: 10px 0 28px; color: var(--muted); font-size: 13px; }
.login-field { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }
.login-field > span {
  color: #b1b7c0;
  font: 500 9px var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.login-field input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--text);
  border: 1px solid rgba(221,231,243,.15);
  border-radius: 6px;
  outline: none;
  background: rgba(255,255,255,.025);
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-field input::placeholder { color: #5f6672; }
.login-field input:focus {
  border-color: rgba(112,213,238,.55);
  background: rgba(112,213,238,.035);
  box-shadow: 0 0 0 3px rgba(112,213,238,.08);
}
.login-error { min-height: 30px; padding-top: 9px; color: #ff849d; font: 9px/1.45 var(--mono); }
.login-submit {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  color: #071015;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  font: 600 10px var(--mono);
  letter-spacing: .1em;
  transition: transform .2s, background .2s, opacity .2s;
}
.login-submit:hover:not(:disabled) { background: #b4effd; transform: translateY(-1px); }
.login-submit:disabled { cursor: not-allowed; opacity: .43; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 820px) {
  .login-shell { padding: 0 25px; }
  .login-stage { grid-template-columns: 1fr; gap: 42px; padding: 52px 0; }
  .login-intro { text-align: center; }
  .login-card-wrap { width: min(100%, 440px); margin: 0 auto; }
}

@media (max-width: 580px) {
  .login-shell { padding: 0 16px; }
  .login-topbar { min-height: 64px; }
  .login-stage { gap: 28px; padding: 34px 0 38px; }
  .login-intro h1 { font-size: clamp(38px, 11.5vw, 49px); line-height: .95; }
  .login-card { padding: 29px 21px 24px; }
  .brand { font-size: 10px; }
}

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