@font-face {
  font-family: "Geist";
  src: url("../geist-variable.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../geist-mono-variable.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: dark;
  font-family: "Geist", system-ui, sans-serif;
  background: #05090b;
  color: #f4f7f6;
  font-synthesis: none;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    linear-gradient(rgba(111, 221, 210, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 221, 210, 0.035) 1px, transparent 1px),
    #05090b;
  background-size: 52px 52px;
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr);
}

.brand-panel,
.form-panel {
  min-height: 100dvh;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px clamp(32px, 5vw, 72px) 32px;
  overflow: hidden;
}

/* The film stays decorative; the foreground owns contrast and interaction. */
.hero-media,
.hero-media::after,
.hero-poster,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-media {
  z-index: 0;
}

.hero-poster,
.hero-media video {
  object-fit: cover;
  object-position: 46% center;
}

.hero-media video {
  opacity: 0;
  transition: opacity 700ms ease-out;
}

.hero-media video.is-playing {
  opacity: 1;
}

.hero-media::after {
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 9, 11, 0.5), rgba(5, 9, 11, 0.24) 28%, rgba(5, 9, 11, 0.86)),
    linear-gradient(90deg, rgba(5, 9, 11, 0.7), rgba(5, 9, 11, 0.28));
}

.brand-panel .eyebrow,
.brand-panel .boundary {
  color: #c0cecf;
}

.brand-panel .brand-copy > p:last-child {
  color: #d4dddd;
}

button:focus-visible,
.brand:focus-visible {
  outline: 2px solid #75d8cf;
  outline-offset: 4px;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  margin-right: 11px;
}

.brand > span {
  padding-right: 16px;
  border-right: 1px solid #263337;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.brand small {
  margin-left: 16px;
  color: #a4b0b1;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 8vh 0;
}

.eyebrow,
.boundary {
  margin: 0;
  color: #859296;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.brand-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.brand-copy h1 span {
  color: #75d8cf;
}

.brand-copy > p:last-child {
  max-width: 580px;
  margin: 0;
  color: #aeb9ba;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
}

.boundary {
  position: relative;
  z-index: 1;
}

.form-panel {
  display: grid;
  place-items: center;
  padding: 38px clamp(32px, 4vw, 60px);
  border-left: 1px solid #1c292d;
  background: rgba(8, 14, 16, 0.9);
  backdrop-filter: blur(16px);
}

.form-wrap {
  width: min(100%, 430px);
}

.form-wrap h2 {
  margin: 12px 0 6px;
  font-size: 32px;
  letter-spacing: -0.05em;
}

.form-intro {
  margin: 0 0 28px;
  color: #9eaaac;
  font-size: 14px;
}

form {
  display: grid;
}

label {
  margin: 0 0 9px;
  color: #b7c0c1;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input {
  width: 100%;
  height: 48px;
  margin: 0 0 17px;
  padding: 0 14px;
  border: 1px solid #2a383c;
  border-radius: 7px;
  outline: none;
  background: #0b1214;
  color: #f4f7f6;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: #75d8cf;
  box-shadow: 0 0 0 3px rgba(117, 216, 207, 0.12);
}

.form-status {
  min-height: 22px;
  margin: -4px 0 11px;
  color: #ef8178;
  font-size: 13px;
}

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #75d8cf;
  border-radius: 7px;
  background: #75d8cf;
  color: #061011;
  cursor: pointer;
  font-weight: 680;
  transition: background 160ms ease, transform 160ms ease;
}

button:hover {
  background: #8ce3db;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: #788689;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75d8cf;
  box-shadow: 0 0 10px rgba(117, 216, 207, 0.6);
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 42vh;
    padding: 24px 22px 28px;
  }

  .brand-copy {
    padding: 48px 0 42px;
  }

  .brand-copy h1 {
    font-size: clamp(38px, 10vw, 58px);
  }

  .form-panel {
    min-height: 58vh;
    padding: 44px 22px 54px;
    border-top: 1px solid #1c292d;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .brand > span {
    padding-right: 0;
    border-right: 0;
  }

  .brand small {
    display: none;
  }

  .brand-copy {
    padding: 42px 0 36px;
  }
}

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