:root {
  --black: #030303;
  --panel: #111214;
  --yellow: #ffc400;
  --yellow-deep: #d99b00;
  --white: #ffffff;
  --silver: #d9d9d9;
  --muted: #a9abb3;
  --line: rgba(255, 255, 255, 0.16);
  --app-scale: 0.88;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  zoom: var(--app-scale);
  color: var(--white);
  background:
    radial-gradient(circle at 75% 10%, rgba(255, 196, 0, 0.16), transparent 28rem),
    radial-gradient(circle at 15% 90%, rgba(217, 217, 217, 0.1), transparent 26rem),
    var(--black);
  letter-spacing: 0;
}

@supports not (zoom: 1) {
  body {
    width: 113.636%;
    min-height: 113.636vh;
    transform: scale(var(--app-scale));
    transform-origin: top left;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.login-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px);
}

.login-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img {
  width: 142px;
}

.login-nav div {
  display: flex;
  gap: 22px;
}

.login-nav a:not(.brand) {
  color: var(--silver);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.login-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 34px;
  padding: 44px 0;
}

.login-story {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #08090a, rgba(255, 196, 0, 0.06)), var(--panel);
}

.login-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #08090a 0%, rgba(8, 9, 10, 0.9) 45%, rgba(8, 9, 10, 0.35) 100%);
}

.login-story > div {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: clamp(34px, 5vw, 70px);
}

.login-story img {
  position: absolute;
  right: -16%;
  bottom: 0;
  width: 76%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-story h1 {
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.login-story p:not(.eyebrow),
.login-card > p:not(.eyebrow),
.login-status {
  color: var(--silver);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

.login-story ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
}

.login-story li {
  position: relative;
  padding-left: 28px;
}

.login-story li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
}

.login-panel {
  display: grid;
  place-items: center;
}

.login-card {
  width: 100%;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), var(--panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

.login-card[hidden] {
  display: none;
}

.recovery-card {
  animation: cardIn 180ms ease-out;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.session-lock {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: start;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 196, 0, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 196, 0, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(8, 9, 10, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.session-lock[hidden] {
  display: none;
}

.session-lock-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #080808;
  background: var(--yellow);
  font-weight: 950;
  text-transform: uppercase;
}

.session-lock strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.session-lock p {
  margin: 5px 0 0;
  color: var(--silver);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.session-lock small {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.45;
}

.session-lock-close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.session-lock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 14px;
}

.session-lock-actions .session-release {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  color: #080808;
  background: linear-gradient(180deg, #ffe36d 0%, var(--yellow) 55%, var(--yellow-deep) 100%);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(255, 196, 0, 0.18);
}

.session-lock-actions .session-release:disabled {
  cursor: wait;
  opacity: 0.72;
}

.session-lock-actions em {
  color: rgba(217, 217, 217, 0.8);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.4;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--silver);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.login-card input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0 16px;
  color: var(--white);
  background: #08090a;
  outline: none;
}

.login-card input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 64px;
}

.password-field button {
  position: absolute;
  right: 10px;
  bottom: 9px;
  min-height: 36px;
  border: 0;
  color: var(--yellow);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.primary-action {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  border: 0;
  border-radius: 6px;
  color: #080808;
  background: linear-gradient(180deg, #ffe36d 0%, var(--yellow) 45%, var(--yellow-deep) 100%);
  cursor: pointer;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 16px 32px rgba(255, 196, 0, 0.18);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

.login-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 800;
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--silver);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.login-links.single {
  justify-content: center;
}

.login-links button {
  border: 0;
  padding: 0;
  color: var(--silver);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.login-links a:first-child,
.login-links button:first-child {
  color: var(--yellow);
}

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

  .login-story {
    min-height: 380px;
  }

  .login-story img {
    right: -28%;
  }
}

@media (max-width: 540px) {
  .login-nav div {
    gap: 12px;
  }

  .login-nav a:not(.brand) {
    font-size: 0.72rem;
  }

  .brand img {
    width: 124px;
  }

  .login-story h1 {
    font-size: 2.8rem;
  }

  .login-links {
    flex-direction: column;
  }

  .session-lock {
    grid-template-columns: 38px 1fr;
  }

  .session-lock-close {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .session-lock-actions {
    align-items: stretch;
  }

  .session-lock-actions .session-release {
    width: 100%;
  }
}
