:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #a0a0a0;
  --grey-dim: #5c5c5c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ice: #cfe6ff;
  --danger: #ff6b6b;
  --glow-white: 0 0 12px rgba(255, 255, 255, 0.35), 0 0 40px rgba(255, 255, 255, 0.12);
  --glow-ice: 0 0 14px rgba(160, 205, 255, 0.45), 0 0 44px rgba(120, 180, 255, 0.18);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--white);
  color: var(--black);
}

.auth {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.visual {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  border-right: 1px solid var(--line);
  isolation: isolate;
}

.visual-bg {
  position: absolute;
  inset: -30px;
  z-index: -2;
  background: #000 url("../assets/images/background.jpg") center / cover no-repeat;
  filter: grayscale(0.55) contrast(1.1) brightness(0.92);
  will-change: transform;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.85) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--glow-white);
}

.brand-mark::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

.brand-name {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.32em;
}

.visual-quote {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.visual-quote span {
  display: block;
  color: rgba(255, 255, 255, 0.28);
}

.visual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.visual-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.visual-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--glow-white);
}

.panel {
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  background: #050505;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--grey);
}

.panel-top .brand {
  display: none;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
}

.back:hover {
  color: var(--white);
}

.switch a {
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.form-wrap {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 48px 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.form-title {
  margin: 12px 0 8px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.form-sub {
  margin: 0 0 32px;
  color: var(--grey);
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.field label,
.field-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

.field-head a {
  font-size: 0.8rem;
  color: var(--grey);
}

.field-head a:hover {
  color: var(--white);
}

.input {
  position: relative;
}

.input input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.input input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(160, 205, 255, 0.08);
}

.field.is-invalid .input input {
  border-color: rgba(255, 107, 107, 0.6);
}

.input .toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 6px 10px;
  background: none;
  border: 0;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
}

.input .toggle:hover {
  color: var(--white);
}

.input-pass input {
  padding-right: 72px;
}

.error {
  min-height: 1em;
  margin: 0;
  font-size: 0.78rem;
  color: var(--danger);
}

.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.strength i {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease;
}

.strength[data-level="1"] i:nth-child(-n + 1),
.strength[data-level="2"] i:nth-child(-n + 2),
.strength[data-level="3"] i:nth-child(-n + 3),
.strength[data-level="4"] i:nth-child(-n + 4) {
  background: var(--white);
}

.strength-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--grey-dim);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.plans legend {
  margin-bottom: 8px;
  padding: 0;
}

.plan-opt {
  position: relative;
  cursor: pointer;
}

.plan-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-opt span {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.plan-opt b {
  font-size: 0.9rem;
}

.plan-opt small {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--grey);
}

.plan-opt:hover span {
  border-color: var(--line-strong);
}

.plan-opt input:checked + span {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.plan-opt input:checked + span small {
  color: #555555;
}

.plan-opt input:focus-visible + span {
  box-shadow: var(--glow-ice);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--grey);
  cursor: pointer;
}

.check input {
  margin-top: 3px;
  accent-color: var(--white);
}

.check a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.submit {
  margin-top: 6px;
  padding: 15px;
  border: 1px solid var(--white);
  border-radius: 11px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--glow-white);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.submit:hover,
.submit:focus-visible {
  background: var(--ice);
  border-color: var(--ice);
  box-shadow: var(--glow-ice);
  outline: none;
}

.submit:active {
  transform: translateY(1px);
}

.submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.note {
  min-height: 1.4em;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ice);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.alt a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.alt a:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.alt svg {
  width: 16px;
  height: 16px;
}

.panel-foot {
  font-size: 0.78rem;
  color: var(--grey-dim);
}

.panel-foot a:hover {
  color: var(--white);
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .visual {
    position: fixed;
    inset: 0;
    z-index: -1;
    padding: 0;
    border: 0;
  }

  .visual > :not(.visual-bg) {
    display: none;
  }

  .panel {
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .panel-top .brand {
    display: inline-flex;
  }

  .back span {
    display: none;
  }

  .form-wrap {
    padding: 40px 0;
  }
}

@media (max-width: 420px) {
  .plans {
    grid-template-columns: 1fr;
  }

  .alt {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.brand-logo {
  display: block;
  width: auto;
  height: 26px;
}

:root {
  --ice: #e7d6ae;
  --accent: #e7d6ae;
  --accent-hover: #f3e8cc;
  --accent-ink: #14110a;
  --line: rgba(255, 255, 255, 0.08);
}

body {
  background: #0a0c0f;
}

.visual-bg {
  background: #0a0c0f url("../assets/images/background-horizon.jpg") center 46% / cover no-repeat;
  filter: grayscale(1) brightness(1.1) contrast(1.05);
  transform: scaleX(-1);
}

.visual::before {
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.15) 0%, rgba(10, 12, 15, 0.05) 45%, rgba(10, 12, 15, 0.85) 100%);
}

.visual-quote span {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: transparent;
  background: linear-gradient(92deg, #e9eff6 0%, #e7d6ae 60%, #7f97b1 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.visual-meta span::before,
.brand-mark,
.brand-mark::after {
  box-shadow: none;
}

.visual-meta span::before {
  background: var(--accent);
}

.panel {
  background: #0c0e12;
}

.eyebrow {
  color: var(--accent);
}

.input input {
  background: #10141a;
  border-color: rgba(255, 255, 255, 0.08);
}

.input input:focus {
  border-color: var(--accent);
  background: #121820;
  box-shadow: 0 0 0 3px rgba(231, 214, 174, 0.14);
}

.submit {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
  border-radius: 9px;
}

.submit:hover,
.submit:focus-visible {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(231, 214, 174, 0.18);
}

.switch a,
.check a {
  color: var(--accent);
  border-bottom-color: rgba(231, 214, 174, 0.4);
}

.plan-opt input:checked + span {
  border-color: var(--accent);
  background: rgba(231, 214, 174, 0.12);
  color: #f3f5f7;
}

.plan-opt input:checked + span small {
  color: #aab2bc;
}

.strength[data-level="1"] i:nth-child(-n + 1),
.strength[data-level="2"] i:nth-child(-n + 2),
.strength[data-level="3"] i:nth-child(-n + 3),
.strength[data-level="4"] i:nth-child(-n + 4) {
  background: var(--accent);
}

.note {
  color: var(--accent);
}

.alt a:hover {
  border-color: rgba(231, 214, 174, 0.4);
  background: rgba(231, 214, 174, 0.06);
}

.check input {
  accent-color: var(--accent);
}

.auth {
  grid-template-columns: minmax(420px, 540px) minmax(0, 1fr);
}

.panel {
  order: 1;
  padding: 32px 56px 28px;
  background: #0b0d11;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.visual {
  order: 2;
  justify-content: center;
  padding: 56px clamp(32px, 5vw, 80px);
  border-right: 0;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.panel-top .brand {
  display: inline-flex;
  margin-right: auto;
}

.panel-top .back {
  order: 3;
  font-size: 0.84rem;
}

.panel-top .switch {
  margin: 0;
  font-size: 0.84rem;
}

.form-wrap {
  max-width: 400px;
  margin: auto 0;
  padding: 56px 0 40px;
}

.eyebrow {
  font-family: var(--sans, inherit);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.form-title {
  margin: 10px 0 8px;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.form-sub {
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.field label,
.field-label {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #c6ccd4;
}

.input input {
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.input-pass input {
  padding-right: 72px;
}

.submit {
  height: 48px;
  padding: 0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.plan-opt span {
  border-radius: 10px;
}

.divider {
  font-family: inherit;
  letter-spacing: 0.06em;
}

.visual-bg {
  inset: -24px;
  background: #07090c url("../assets/images/dawn.svg") center / cover no-repeat;
  filter: none;
  transform: none;
}

.visual::before {
  background: linear-gradient(180deg, rgba(7, 9, 12, 0) 0%, rgba(7, 9, 12, 0) 60%, rgba(7, 9, 12, 0.6) 100%);
}

.visual-inner {
  display: grid;
  gap: 40px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.visual-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e7d6ae;
}

.visual-quote {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-transform: none;
  color: #f3f5f7;
}

.visual-quote span {
  display: block;
  font-size: 1.08em;
}

.stack {
  position: relative;
  height: clamp(300px, 34vw, 440px);
  perspective: 1600px;
}

.frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #0a0c0f;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #0f1216;
}

.frame-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a3039;
}

.frame-bar span {
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 5px;
  background: #080a0d;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #6b7480;
}

.frame-back {
  top: 0;
  left: 0;
  width: 82%;
  opacity: 0.75;
  transform: rotateY(8deg) rotateX(2deg) scale(0.96);
  transform-origin: left center;
}

.frame-front {
  right: 0;
  bottom: 0;
  width: 70%;
  transform: rotateY(-6deg) rotateX(2deg);
  transform-origin: right center;
  animation: frame-float 9s ease-in-out infinite alternate;
}

@keyframes frame-float {
  to {
    transform: rotateY(-3deg) rotateX(1deg) translateY(-8px);
  }
}

.stack-chip {
  position: absolute;
  left: 6%;
  bottom: 6%;
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(13, 16, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.stack-chip span {
  justify-self: start;
  padding: 1px 7px;
  border: 1px solid rgba(231, 214, 174, 0.4);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e7d6ae;
}

.stack-chip b {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: #f3f5f7;
}

.stack-chip small {
  font-size: 0.74rem;
  color: #8e98a4;
}

.visual-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.visual-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: #c6ccd4;
}

.visual-points li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(231, 214, 174, 0.16) center / 9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9bfd6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

@media (max-width: 1100px) {
  .auth {
    grid-template-columns: minmax(400px, 480px) minmax(0, 1fr);
  }

  .panel {
    padding: 28px 36px;
  }

  .frame-back {
    width: 92%;
  }

  .frame-front {
    width: 80%;
  }
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 22px 20px;
    border-right: 0;
    background: rgba(9, 11, 14, 0.82);
  }

  .form-wrap {
    margin: auto;
  }

  .panel-top .switch {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame-front {
    animation: none;
  }
}

@media (min-width: 901px) {
  .panel-top .back {
    display: none;
  }

  .panel-top .switch {
    white-space: nowrap;
  }
}

:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

body {
  font-family: var(--sans);
  background: #08080a;
}

.panel {
  background: #0b0b0d;
}

.visual-quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.visual-quote span {
  font-style: italic;
  color: #e7d6ae;
}

.form-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

.eyebrow,
.visual-eyebrow {
  font-family: var(--mono);
  letter-spacing: 0.14em;
}

.input input,
.submit,
.frame,
.stack-chip,
.plan-opt span {
  border-radius: 6px;
}
