@font-face {
  font-family: "Inter";
  src: url("/assets/Inter.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101112;
  color: #f5ebdd;
  font-synthesis: none;
  --page: #101112;
  --card: #1a1b1d;
  --text: #f5ebdd;
  --muted: #b9b7b2;
  --purple: #b48be3;
  --sage: #b4cca8;
  --ivory: #f5e8d5;
  --border: #323333;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; }
button, input { font: inherit; }

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(143, 82, 205, .15), transparent 35rem),
    radial-gradient(circle at 88% 86%, rgba(180, 204, 168, .08), transparent 28rem),
    var(--page);
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(245, 235, 221, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 235, 221, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 3rem));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: 3rem 0;
}

.experience-panel { min-width: 0; }
.brand-lockup {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand-lockup img { width: 42px; height: 42px; }

.product-visual {
  position: relative;
  height: clamp(280px, 32vw, 380px);
  margin: .5rem -3vw 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.product-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.82) contrast(1.04) drop-shadow(0 35px 55px rgba(0, 0, 0, .56));
}
.visual-halo {
  position: absolute;
  z-index: 0;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(180, 139, 227, .22);
  filter: blur(65px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--sage);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.status-dot {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 5px rgba(180, 204, 168, .10), 0 0 14px rgba(180, 204, 168, .46);
}
.experience-copy h1 {
  margin: .85rem 0 .8rem;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: .97;
  letter-spacing: -.065em;
}
.experience-copy p { margin: 0; color: var(--muted); font-size: clamp(.95rem, 1.6vw, 1.1rem); }

.login-card {
  position: relative;
  padding: clamp(1.65rem, 4vw, 2.4rem);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(30, 30, 33, .97), rgba(22, 23, 24, .98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .38), inset 0 1px rgba(255,255,255,.035);
}
.login-card h2 {
  margin: 1.05rem 0 .45rem;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.intro { margin: 0 0 1.8rem; color: var(--muted); font-size: .94rem; }

form label { display: block; margin: 0 0 .55rem; color: #ddd8d0; font-size: .78rem; font-weight: 680; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg {
  position: absolute;
  left: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: #8e8b89;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 4rem 0 2.9rem;
  border: 1px solid #3b3b3d;
  border-radius: 13px;
  outline: 0;
  background: #121314;
  color: var(--text);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap input:focus {
  border-color: var(--purple);
  background: #101112;
  box-shadow: 0 0 0 4px rgba(180, 139, 227, .12);
}
.reveal {
  position: absolute;
  right: .7rem;
  padding: .45rem;
  border: 0;
  background: transparent;
  color: #aaa6a1;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.reveal:hover { color: var(--text); }
.error-message { min-height: 1.2rem; margin: .75rem 0 0; color: #ef9aa3; font-size: .8rem; }
.primary-button {
  width: 100%;
  height: 54px;
  margin-top: .45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 0;
  border-radius: 13px;
  background: var(--ivory);
  color: #211d25;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 13px 30px rgba(0, 0, 0, .22), inset 0 1px rgba(255,255,255,.4);
  transition: transform .18s, background .18s, opacity .18s;
}
.primary-button:hover { transform: translateY(-1px); background: #fff4e4; }
.primary-button:disabled { opacity: .62; cursor: wait; transform: none; }
.primary-button svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.primary-button:hover svg { transform: translateX(2px); }
.primary-button.loading span::after { content: "…"; }
.secure-note {
  margin-top: 1.45rem;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-top: 1px solid #303032;
  color: #817f7b;
  font-size: .69rem;
  text-align: center;
}
.secure-note svg { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: var(--sage); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.watch-page { min-height: 100vh; background: var(--page); }
.watch-header {
  height: 74px;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 17, 18, .92);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; }
.brand-mark img { width: 100%; height: 100%; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .93rem; }
.brand small { margin-top: .1rem; color: #85827e; font-size: .68rem; }
.watch-actions { display: flex; align-items: center; gap: 1rem; }
.live-badge { display: flex; align-items: center; gap: .4rem; color: #d9d4cc; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.live-badge span { width: .48rem; height: .48rem; border-radius: 50%; background: #e56370; box-shadow: 0 0 12px rgba(229,99,112,.65); }
.logout-link { padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); font-size: .76rem; text-decoration: none; }
.logout-link:hover { border-color: #555354; color: var(--text); }
.watch-main { padding: clamp(1rem, 3vw, 2rem); }
.player-frame { overflow: hidden; min-height: calc(100vh - 130px); border: 1px solid var(--border); border-radius: 18px; background: #000; box-shadow: 0 24px 65px rgba(0,0,0,.4); }
.player-frame iframe,
.player-frame video { display: block; width: 100%; height: calc(100vh - 130px); min-height: 520px; border: 0; background: #000; object-fit: contain; }
.player-frame [hidden] { display: none; }
.player-status {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: .8rem 1rem;
  border: 1px solid #4b494a;
  border-radius: 11px;
  background: rgba(26, 27, 29, .92);
  color: var(--text);
  cursor: pointer;
}
.player-frame { position: relative; }
.player-note { margin: .75rem 0 0; color: #85827e; font-size: .75rem; text-align: center; }

@media (max-width: 820px) {
  .login-shell { width: min(520px, calc(100% - 2rem)); grid-template-columns: 1fr; gap: 1rem; padding: 1.4rem 0 2rem; }
  .brand-lockup { margin-bottom: .4rem; }
  .product-visual { height: 245px; margin: -1.2rem -2.5rem -3.8rem; }
  .experience-copy { display: none; }
  .login-card { padding: 1.65rem; border-radius: 20px; }
}

@media (max-width: 480px) {
  .login-shell { width: min(100% - 1.4rem, 430px); align-content: start; }
  .brand-lockup { padding-left: .35rem; }
  .product-visual { height: 215px; margin: -1.2rem -1rem -3.4rem; }
  .watch-header { height: 64px; }
  .brand small, .live-badge { display: none; }
  .watch-main { padding: .7rem; }
  .player-frame, .player-frame iframe, .player-frame video { min-height: calc(100vh - 102px); height: calc(100vh - 102px); border-radius: 12px; }
  .player-note { display: none; }
}

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