:root {
  color-scheme: dark;

  --bg: #181818;
  --surface: #202020;
  --surface-2: #272727;
  --surface-3: #303030;

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);

  --text: #f2f2f2;
  --text-soft: #b8b8b8;
  --text-muted: #777777;

  --accent: #4ca8ff;
  --accent-strong: #1687f5;
  --accent-soft: rgba(76, 168, 255, 0.10);

  --success: #5ee19b;
  --warning: #f4c56a;
  --danger: #ff6876;

  --sidebar-width: 260px;
  --header-height: 74px;

  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);
  background: #181818;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  min-height: 100vh;
  isolation: isolate;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.32;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.page::after {
  content: "";
  position: fixed;
  width: 480px;
  height: 480px;
  right: -170px;
  top: -180px;
  z-index: -2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  filter: blur(90px);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.presentation {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 54px 7vw 42px;
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;

  background:
    linear-gradient(
    145deg,
    #303030,
    #232323
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 30px rgba(0, 0, 0, 0.28);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.brand-mark::before {
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 18px rgba(76, 168, 255, 0.5);
}

.brand-mark::after {
  width: 4px;
  height: 4px;
  background: white;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-version {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin-left: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero {
  width: min(720px, 100%);
  padding: 60px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 34px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(76, 168, 255, 0.6);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 6.1vw, 92px);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: transparent;

  background:
    linear-gradient(
    90deg,
    #ffffff 0%,
    #cfcfcf 48%,
    #f0f0f0 100%
    );

  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.7;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.feature {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.022);
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 11px rgba(76, 168, 255, 0.75);
}

.presentation-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(94, 225, 155, 0.7);
}

.login-side {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;

  border-left: 1px solid rgba(255, 255, 255, 0.055);

  background:
    linear-gradient(
    180deg,
    #202020,
    #1b1b1b
    );

  backdrop-filter: blur(18px);
}

.login-panel {
  position: relative;
  width: min(440px, 100%);
  padding: 38px;

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(
    160deg,
    #2a2a2a,
    #202020
    );

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(255, 255, 255, 0.02);

  overflow: hidden;
  animation: panel-in 650ms ease-out both;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;

  background:
    linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
    );
}

.login-panel::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -55px;
  top: -55px;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);
  filter: blur(35px);
  pointer-events: none;
}

.login-heading {
  margin-bottom: 30px;
}

.login-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.login-heading p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.form-input::placeholder {
  color: #505968;
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);

  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.035),
    0 8px 28px rgba(0, 0, 0, 0.2);

  transform: translateY(-1px);
}

.input-icon,
.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.input-icon {
  display: grid;
  place-items: center;
  pointer-events: none;
}

.input-icon svg,
.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle {
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  background: transparent;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.password-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.password-help {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.login-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 54px;
  margin-top: 26px;
  padding: 0 18px;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-sm);
  color: white;
  background:
    linear-gradient(
    135deg,
    var(--accent-strong),
    #58b5ff
    );
  box-shadow:
    0 12px 32px rgba(22, 135, 245, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.login-button::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 160%;
  left: -110px;
  top: -30%;
  background:
    linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.34),
    transparent
    );
  transform: skewX(-24deg);
  transition: left 500ms ease;
}

.login-button:hover::before {
  left: calc(100% + 30px);
}

.login-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 16px 38px rgba(22, 135, 245, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.button-arrow {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spinner {
  display: none;
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

.login-button.loading .button-content {
  display: none;
}

.login-button.loading .spinner {
  display: block;
}

.feedback {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  animation: feedback-in 180ms ease-out both;
}

.feedback.visible {
  display: flex;
}

.feedback.error {
  color: #ffc4ca;
  border-color: rgba(255, 104, 118, 0.22);
  background: rgba(255, 104, 118, 0.08);
}

.feedback.success {
  color: #baf5d3;
  border-color: rgba(94, 225, 155, 0.22);
  background: rgba(94, 225, 155, 0.08);
}

.feedback-icon {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.login-meta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.decor-orbit {
  position: absolute;
  right: 4vw;
  bottom: 9vh;
  z-index: -1;
  width: 280px;
  height: 280px;
  opacity: 0.4;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 0;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;

  animation: orbit-spin 28s linear infinite;
}
.orbit-ring:nth-child(2) {
  inset: 44px;
  border-style: dashed;
  animation-duration: 19s;
  animation-direction: reverse;
}

.orbit-ring:nth-child(3) {
  inset: 92px;
  border-color: rgba(255, 255, 255, 0.09);
  animation-duration: 13s;
}

.orbit-ring::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 50%;
  top: -4px;
  border-radius: 50%;

  background: var(--accent);
  box-shadow: 0 0 10px rgba(76, 168, 255, 0.55);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

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

@keyframes feedback-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-40px, 35px, 0) scale(1.12);
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
  }

  .presentation {
    min-height: auto;
    padding: 34px 28px 12px;
  }

  .hero {
    padding: 70px 0 30px;
  }

  .hero h1 {
    font-size: clamp(44px, 10vw, 72px);
  }

  .presentation-footer {
    display: none;
  }

  .login-side {
    min-height: auto;
    padding: 34px 22px 50px;
    border-left: 0;
  }

  .decor-orbit {
    right: -80px;
    bottom: -30px;
  }
}

@media (max-width: 560px) {
  .presentation {
    padding: 26px 20px 8px;
  }

  .hero {
    padding: 54px 0 22px;
  }

  .hero-description {
    font-size: 15px;
  }

  .features {
    display: none;
  }

  .login-side {
    padding: 24px 14px 34px;
  }

  .login-panel {
    padding: 28px 22px;
    border-radius: 20px;
  }
}

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