
/* =========================================================
   REMIFY — AFFILIATE REGISTRATION
   ========================================================= */

:root {
  --white: #ffffff;
  --black: #111111;
  --muted: #777777;
  --border: #e8e6e9;
  --soft: #f7f5f8;
  --violet: #5b2d82;
  --violet-dark: #472166;
  --danger: #b42318;
}

@font-face {
  font-family: "Satoshi";
  src: url("./fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("./fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: "Satoshi", sans-serif;
  background: #f7f5f8;
  color: #171717;
  font-weight: 400;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Satoshi", sans-serif;
  font-weight: 700;
}

/* Everything else */
p,
span,
li,
a,
button,
input,
textarea,
select {
  font-family: "Satoshi", sans-serif;
  font-weight: 400;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Satoshi", sans-serif;
  font-weight: 700;
}

/* Regular text */
p,
span,
li,
a,
button,
input,
textarea,
select {
  font-family: "Satoshi", sans-serif;
  font-weight: 400;
}


/* =========================================================
   SCROLL PROGRESS
   ========================================================= */

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 6px;
  height: 100vh;
  background: rgba(41,0,82,.07);
  pointer-events: none;
  z-index: 99999;
}

.scroll-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,#6d32a8 0%,#5b2d82 55%,#17002e 100%);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
  box-shadow: 0 0 6px rgba(41,0,82,.45),0 0 14px rgba(41,0,82,.18);
  border-radius: 0 0 4px 4px;
}

/* =========================================================
   HIDE NATIVE SCROLLBAR
   ========================================================= */

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* =========================================================
   CURSOR
   ========================================================= */

.cursor-trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100000;
}

@media (hover:hover) and (pointer:fine) {
  * {
    cursor: none !important;
  }

  .cursor-spark {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 100001;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s cubic-bezier(.22,1,.36,1),filter .2s ease;
  }

  .cursor-spark::before,
  .cursor-spark::after,
  .cursor-spark span::before,
  .cursor-spark span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--violet);
    transform-origin: center;
    border-radius: 999px;
    box-shadow: 0 0 5px rgba(41,0,82,.35);
  }

  .cursor-spark::before {
    width: 2px;
    height: 16px;
    transform: translate(-50%,-50%);
  }

  .cursor-spark::after {
    width: 16px;
    height: 2px;
    transform: translate(-50%,-50%);
  }

  .cursor-spark span::before {
    width: 1.5px;
    height: 12px;
    transform: translate(-50%,-50%) rotate(45deg);
  }

  .cursor-spark span::after {
    width: 1.5px;
    height: 12px;
    transform: translate(-50%,-50%) rotate(-45deg);
  }

  .cursor-spark--active {
    transform: translate(-50%,-50%) scale(1.45);
    filter: drop-shadow(0 0 5px rgba(41,0,82,.35)) drop-shadow(0 0 14px rgba(92,45,145,.35));
  }

  .cursor-spark--click {
    transform: translate(-50%,-50%) scale(.72);
  }
}


.sidebar-brand a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sidebar-brand img {
  width: clamp(120px, 75%, 190px);
  height: auto;
  display: block;
  transform: scale(1.15);
  transform-origin: center;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.sidebar-brand img {
  width: clamp(120px, 75%, 190px);
  height: auto;
  display: block;
  transform: scale(1.15);
  transform-origin: center;
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar-brand img {
    width: clamp(110px, 55vw, 160px);
    transform: scale(0.75);
  }
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body {
  min-height: 100vh;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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


/* =========================================================
   PAGE
   ========================================================= */

.affiliate-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
}


/* =========================================================
   BRAND PANEL
   ========================================================= */

.brand-panel {
  position: relative;
  min-height: 100vh;
  background: var(--violet);
  color: var(--white);
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  top: -230px;
  right: -220px;
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  bottom: -470px;
  left: -390px;
}

.brand-panel__inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 42px clamp(35px, 5vw, 78px);
  display: flex;
  flex-direction: column;
}


/* =========================================================
   LOGO
   ========================================================= */

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

.brand-logo__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 16px;
}

.brand-logo__text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
}


/* =========================================================
   BRAND COPY
   ========================================================= */

.brand-copy {
  max-width: 530px;
  margin: auto 0;
  padding: 70px 0;
}

.eyebrow,
.form-eyebrow {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 2.8px;
  font-weight: 800;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 25px;
}

.brand-copy h1 {
  max-width: 520px;
  font-size: clamp(52px, 5.5vw, 82px);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -1.5px;
}

.brand-copy h1 em {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-style: normal;
}

.brand-description {
  max-width: 430px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.8;
}


/* =========================================================
   BRAND BOTTOM
   ========================================================= */

.brand-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.commission-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.commission-badge__value {
  font-size: 38px;
  line-height: 1;
}

.commission-badge__text {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  letter-spacing: 1.2px;
}


/* =========================================================
   FORM PANEL
   ========================================================= */

.form-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.form-container {
  width: min(100%, 620px);
  padding: 60px clamp(28px, 5vw, 75px);
}


/* =========================================================
   MOBILE LOGO
   ========================================================= */

.mobile-logo {
  display: none;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.form-header {
  margin-bottom: 32px;
}

.form-eyebrow {
  color: var(--violet);
  margin-bottom: 14px;
}

.form-header h2,
.success-state h2 {
  font-weight: 400;
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -1px;
}

.form-header > p:last-child {
  max-width: 460px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}


/* =========================================================
   FORM MESSAGE
   ========================================================= */

.form-message {
  display: none;
  padding: 13px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.6;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-error {
  color: var(--danger);
  background: #fff5f4;
  border: 1px solid #f3d2cf;
}

.form-message.is-success {
  color: #28633e;
  background: #f2faf5;
  border: 1px solid #cee8d6;
}


/* =========================================================
   FORM
   ========================================================= */

.affiliate-form {
  width: 100%;
}

.field {
  margin-bottom: 19px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.input-wrap input::placeholder {
  color: #aaa6ac;
}

.input-wrap input:hover {
  border-color: #d4d0d7;
}

.input-wrap input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(91, 45, 130, 0.08);
}

.input-wrap.has-error input {
  border-color: var(--danger);
  background: #fffafa;
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-wrap--password input {
  padding-right: 47px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  background: transparent;
  cursor: pointer;
}

.eye-icon {
  position: relative;
  width: 17px;
  height: 11px;
  border: 1.5px solid #8f8a92;
  border-radius: 80% 20%;
  transform: rotate(45deg);
}

.eye-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  top: 2px;
  left: 5px;
  border-radius: 50%;
  background: #8f8a92;
}


/* =========================================================
   TERMS
   ========================================================= */

.terms {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 9px 0 5px;
  cursor: pointer;
}

.terms input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.terms__box {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1px solid #d0ccd3;
  border-radius: 4px;
  background: var(--white);
  transition: 0.2s ease;
}

.terms input:checked + .terms__box {
  background: var(--violet);
  border-color: var(--violet);
}

.terms input:checked + .terms__box::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  margin: 2px 0 0 5px;
  border-right: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(45deg);
}

.terms input:focus-visible + .terms__box {
  box-shadow: 0 0 0 3px rgba(91, 45, 130, 0.1);
}

.terms__text {
  color: #77737a;
  font-size: 10px;
  line-height: 1.65;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.submit-button {
  position: relative;
  width: 100%;
  height: 54px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 4px;
  background: var(--violet);
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.submit-button:hover {
  background: var(--violet-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(91, 45, 130, 0.18);
}

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

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

.submit-button__arrow {
  font-size: 17px;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.submit-button:hover .submit-button__arrow {
  transform: translateX(4px);
}

.submit-button__loader {
  position: absolute;
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-button.is-loading .submit-button__text,
.submit-button.is-loading .submit-button__arrow {
  opacity: 0;
}

.submit-button.is-loading .submit-button__loader {
  display: block;
}

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


/* =========================================================
   LOGIN
   ========================================================= */

.login-prompt {
  margin-top: 19px;
  text-align: center;
  color: #8a858d;
  font-size: 11px;
}

.login-prompt a {
  margin-left: 3px;
  color: var(--violet);
  font-weight: 800;
}

.login-prompt a:hover {
  text-decoration: underline;
}


/* =========================================================
   SUCCESS STATE
   ========================================================= */

.success-state {
  animation: successIn 0.5s ease both;
}

@keyframes successIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.success-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 50%;
  background: var(--violet);
  color: white;
  font-size: 22px;
  font-weight: 500;
}

.success-description {
  max-width: 460px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.referral-card {
  margin-top: 30px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fcfbfc;
}

.referral-card__label {
  display: block;
  color: #89848c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.referral-card strong {
  display: block;
  margin-top: 10px;
  color: var(--violet);
  font-size: 25px;
  letter-spacing: 2px;
}

.referral-card__note {
  display: block;
  max-width: 400px;
  margin-top: 8px;
  color: #99949b;
  font-size: 10px;
  line-height: 1.6;
}

.success-button {
  width: fit-content;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border-radius: 4px;
  background: var(--violet);
  color: white;
  font-size: 11px;
  font-weight: 800;
  transition: 0.25s ease;
}

.success-button:hover {
  background: var(--violet-dark);
  transform: translateY(-1px);
}

.success-button span {
  font-size: 16px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .affiliate-page {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .brand-panel__inner {
    padding: 35px;
  }

  .brand-copy h1 {
    font-size: clamp(48px, 6vw, 65px);
  }

  .brand-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-note {
    display: none;
  }

  .form-container {
    padding: 50px 40px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .affiliate-page {
    display: block;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    min-height: 100vh;
    display: block;
  }

  .form-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding:
      28px
      22px
      45px;
  }

  .mobile-logo {
    display: block;
    margin-bottom: 62px;
  }

  .mobile-logo .brand-logo {
    color: var(--violet);
  }

  .mobile-logo .brand-logo__mark {
    border-color: var(--violet);
  }

  .mobile-logo .brand-logo__text {
    letter-spacing: 3.5px;
  }

  .form-header {
    margin-bottom: 30px;
  }

  .form-header h2 {
    font-size: 44px;
  }

  .password-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .submit-button {
    height: 55px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

  .form-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mobile-logo {
    margin-bottom: 48px;
  }

  .form-header h2 {
    font-size: 39px;
  }

  .form-header > p:last-child {
    font-size: 12px;
  }

  .terms__text {
    font-size: 9.5px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

}

