@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #151727;
  --muted: #8a91a3;
  --line: #edf1f7;
  --blue: #1459ff;
  --blue-deep: #0f51f4;
  --panel: #ffffff;
  --font-sans: "SF Pro Display", "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #f7f9fd;
  font-family: var(--font-sans);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

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

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.auth-card {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(420px, 4fr);
  overflow: hidden;
  background: var(--panel);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-form-panel {
  display: grid;
  place-items: center;
  padding: 56px clamp(40px, 7vw, 96px);
}

.auth-form-inner {
  width: min(420px, 100%);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  color: #191b2f;
  font-size: 15px;
  font-weight: 800;
}

.auth-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4ebf7;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(29, 127, 245, .16);
}

.auth-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.auth-heading {
  margin-bottom: 32px;
}

.auth-heading h1 {
  margin: 0;
  color: #171827;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.18;
}

.auth-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #bd2548;
  background: #fff0f4;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.auth-alert.success {
  color: #0f7a3c;
  background: #eafaf0;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fbfcff;
  border: 1px solid transparent;
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(20, 28, 59, .04);
  transition: border .18s ease, box-shadow .18s ease;
}

.auth-field:focus-within {
  border-color: rgba(20, 89, 255, .34);
  box-shadow: 0 0 0 4px rgba(20, 89, 255, .08);
}

.auth-field > .ti {
  color: #9aa3b4;
  font-size: 18px;
}

.auth-field input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.auth-field input::placeholder {
  color: #a1a8b8;
}

.password-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #5b6273;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 22px;
  margin-top: -3px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.auth-submit {
  height: 52px;
  margin-top: 10px;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(20, 89, 255, .28);
}

.auth-submit:hover {
  background: var(--blue-deep);
}

.auth-footer-text {
  margin: 62px 0 0;
  color: #8b92a3;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.auth-footer-text span {
  color: var(--blue);
  font-weight: 800;
}

.auth-visual-panel {
  position: relative;
  align-self: center;
  height: calc(100vh - 36px);
  min-height: 0;
  overflow: hidden;
  margin: 18px 18px 18px 0;
  color: #ffffff;
  perspective: 1200px;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 95% 4%, rgba(255,255,255,.08), transparent 9%),
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.08), transparent 14%),
    linear-gradient(150deg, #1767ff 0%, #1458ff 58%, #0f52f1 100%);
  border-radius: 20px;
}

[data-parallax-layer] {
  --parallax-x: 0px;
  --parallax-y: 0px;
  --parallax-tilt-x: 0deg;
  --parallax-tilt-y: 0deg;
  will-change: transform;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.shape {
  position: absolute;
  border: 2px solid rgba(255,255,255,.10);
}

.shape-one {
  width: 76px;
  height: 76px;
  left: -24px;
  top: -28px;
  border-radius: 24px;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) rotate(32deg);
}

.shape-two {
  width: 92px;
  height: 92px;
  left: 38px;
  bottom: 28px;
  border-radius: 26px;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) rotate(30deg);
}

.shape-three {
  width: 170px;
  height: 170px;
  right: -62px;
  bottom: 16px;
  border-radius: 42px;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) rotate(33deg);
}

.mock-dashboard {
  position: absolute;
  top: clamp(132px, 20vh, 178px);
  left: 10%;
  right: 10%;
  height: clamp(220px, 34vh, 290px);
  display: grid;
  grid-template-columns: clamp(54px, 18%, 72px) 1fr;
  overflow: hidden;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 30px 70px rgba(10, 35, 120, .28);
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) rotateX(var(--parallax-tilt-x)) rotateY(var(--parallax-tilt-y));
  transform-style: preserve-3d;
}

.mock-sidebar {
  padding: clamp(12px, 2vw, 16px) 10px;
  background: #fbfcff;
  border-right: 1px solid #eff3fb;
}

.mock-sidebar span {
  width: min(46px, 80%);
  height: 9px;
  display: block;
  margin-bottom: 22px;
  background: #111827;
  border-radius: 999px;
}

.mock-sidebar i {
  width: min(52px, 92%);
  height: 12px;
  display: block;
  margin-bottom: 13px;
  background: #e9effb;
  border-radius: 999px;
}

.mock-content {
  padding: clamp(14px, 2vw, 18px);
}

.mock-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mock-top span,
.mock-top b {
  height: 12px;
  display: block;
  background: #eef3fb;
  border-radius: 999px;
}

.mock-top span {
  width: clamp(78px, 42%, 128px);
}

.mock-top b {
  width: clamp(44px, 24%, 74px);
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.4vw, 12px);
  margin-bottom: 20px;
}

.mock-stats span {
  height: clamp(32px, 5vw, 46px);
  display: block;
  background: #f7f9fd;
  border: 1px solid #eef2f8;
  border-radius: 10px;
}

.mock-dashboard svg {
  width: 100%;
  height: clamp(104px, 16vh, 138px);
  display: block;
}

.mock-table {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.mock-table span {
  height: 10px;
  background: #edf2f8;
  border-radius: 999px;
}

.floating-card {
  position: absolute;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(10, 35, 120, .26);
}

.floating-code {
  top: clamp(112px, 17vh, 142px);
  right: 7%;
  width: clamp(58px, 6vw, 76px);
  height: clamp(58px, 6vw, 76px);
  display: grid;
  place-items: center;
  color: #1459ff;
  border-radius: 22px;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) rotate(30deg);
}

.floating-code .ti {
  font-size: clamp(26px, 2.5vw, 34px);
  transform: rotate(-30deg);
}

.floating-mini {
  left: 7%;
  top: clamp(330px, 48vh, 378px);
  width: clamp(104px, 9vw, 122px);
  min-height: 104px;
  padding: 13px;
  color: #151727;
  border-radius: 12px;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
}

.floating-mini div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.floating-mini i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #1d7ff5;
  border-radius: 50%;
}

.floating-mini svg {
  width: 100%;
  height: 44px;
  margin-top: 14px;
}

.auth-visual-copy {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: clamp(56px, 10vh, 86px);
  text-align: center;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
}

.auth-visual-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}

.auth-visual-copy p {
  margin: 16px auto 0;
  max-width: 340px;
  color: rgba(255,255,255,.76);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.6;
}

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

  .auth-visual-panel {
    display: none;
  }

  .auth-form-panel {
    min-height: calc(100vh - 34px);
    padding: 44px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-parallax-layer] {
    transition: none;
    transform: none;
    will-change: auto;
  }

  .shape-one {
    transform: rotate(32deg);
  }

  .shape-two {
    transform: rotate(30deg);
  }

  .shape-three {
    transform: rotate(33deg);
  }

  .floating-code {
    transform: rotate(30deg);
  }
}

@media (max-width: 520px) {
  .auth-page {
    padding: 0;
  }

  .auth-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-form-panel {
    padding: 36px 22px;
  }

  .auth-form-inner {
    width: min(100%, 300px);
  }

  .auth-brand {
    margin-bottom: 42px;
  }

  .auth-heading h1 {
    font-size: 27px;
  }

  .auth-footer-text {
    margin-top: 46px;
  }
}
