:root {
  color-scheme: dark;
  --ink: #f5f2fb;
  --muted: #918d9d;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #836ef9;
  --accent-bright: #a99bff;
  --bg: #0a090e;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  min-height: 100svh;
  overflow: hidden;
}

.login-statement,
.login-entry {
  position: relative;
  min-height: 100svh;
}

.login-statement {
  display: flex;
  align-items: flex-end;
  padding: clamp(38px, 6vw, 94px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(131, 110, 249, 0.18), transparent 42%),
    radial-gradient(circle at 18% 22%, rgba(131, 110, 249, 0.14), transparent 30%),
    #0d0c12;
  isolation: isolate;
}

.login-statement::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 80px 80px;
  content: "";
  mask-image: linear-gradient(to bottom right, black, transparent 76%);
}

.login-statement::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 32%;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(131, 110, 249, 0.65);
  content: "";
  transform-origin: top;
  animation: line-arrive 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.private-mark {
  position: absolute;
  top: clamp(34px, 5vw, 72px);
  left: clamp(38px, 6vw, 94px);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(131, 110, 249, 0.68);
  border-radius: 13px;
  background: rgba(131, 110, 249, 0.1);
  transform: rotate(9deg);
}

.private-mark span {
  width: 15px;
  height: 21px;
  border: 2px solid var(--accent-bright);
  border-top-width: 6px;
  border-radius: 3px 3px 8px 8px;
  transform: rotate(-9deg);
}

.statement-copy {
  animation: statement-arrive 720ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.statement-copy p,
.login-form header p {
  margin: 0 0 18px;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.statement-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(66px, 8.3vw, 144px);
  font-weight: 600;
  letter-spacing: -0.078em;
  line-height: 0.82;
}

.login-entry {
  display: grid;
  align-items: center;
  padding: clamp(42px, 7vw, 112px);
  background: #0a090e;
}

.login-form {
  width: min(100%, 430px);
  margin-inline: auto;
  animation: form-arrive 650ms 160ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-form header {
  margin-bottom: clamp(42px, 8vh, 76px);
}

.login-form h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 580;
  letter-spacing: -0.045em;
}

.login-form label {
  display: block;
  margin-bottom: 30px;
}

.login-form label span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  height: 54px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 500 17px/1 var(--font);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 1px 0 var(--accent-bright);
}

.login-feedback {
  min-height: 22px;
  margin: -6px 0 18px;
  color: #f0a0a7;
  font-size: 13px;
}

.login-form button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 58px;
  padding: 0 20px 0 22px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font: 700 14px/1 var(--font);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-form button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.login-form button:hover:not(:disabled) {
  background: #907dfc;
  box-shadow: 0 14px 34px rgba(131, 110, 249, 0.2);
  transform: translateY(-1px);
}

.login-form button:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.login-form button:focus-visible,
.login-form input:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.login-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@keyframes statement-arrive {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes form-arrive {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes line-arrive {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

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

  .login-statement,
  .login-entry {
    min-height: auto;
  }

  .login-statement {
    align-items: flex-end;
    min-height: 43svh;
    padding: 34px 28px 42px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .private-mark {
    top: 28px;
    left: 28px;
    width: 38px;
    height: 38px;
  }

  .statement-copy h1 {
    font-size: clamp(54px, 17vw, 84px);
  }

  .login-entry {
    min-height: 57svh;
    padding: 54px 28px 64px;
  }

  .login-form header {
    margin-bottom: 38px;
  }
}

@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;
  }
}
