/* ==========================================================================
   Auth Pages CSS — signup.html, login.html, forgot-password.html
   Extracted from custom.css
   ========================================================================== */

/* ===== Design System Tokens (only the ones used by these pages) ===== */
:root {
  --if-blue: #236cc0;
  --if-teal: #038387;
  --if-green: #81bc06;
  --if-pink: #d76ebc;
  --if-gold: #f5bf4e;

  --if-text-primary: #1a1a1a;

  --if-white: #fff;
  --if-bg-light: #FBFBF9;

  --if-gray-200: #e8e8e8;
  --if-gray-300: #d4d4d4;

  --if-radius-pill: 100px;
  --if-radius-lg: 16px;
}

a, button, input, select, textarea, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.error1 {border: 2px solid red !important;}

/* ===== Typography ===== */
@font-face {
  font-family: 'Ploni';
  src: url('../fonts/ploni-regular-aaa.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ploni';
  src: url('../fonts/ploni-demibold-aaa.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700&display=swap');

html { overflow-x: clip; }

*, *::before, *::after { -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Ploni', 'Heebo', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--if-text-primary);
  line-height: 1.2;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; }

/* ===== Primary Button (used as .signup-submit base) ===== */
.btn-if-primary {
  background-color: var(--if-blue);
  color: var(--if-white);
  border: none;
  border-radius: var(--if-radius-pill);
  padding: 12px 32px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
  -webkit-text-size-adjust: 100%;
  text-decoration: none;
}
.btn-if-primary:hover {
  background-color: #1a5299;
  background-color: color-mix(in srgb, var(--if-blue) 70%, #000);
  color: var(--if-white);
  text-decoration: none;
}

/* ==========================================================================
   Signup Page
   ========================================================================== */
.signup-section {
  min-height: 100vh;
  background: #fff;
  overflow-x: clip;
}
.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}
.signup-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  background: #fff;
}
.signup-form-wrap { width: 100%; max-width: 440px; }
.signup-header { margin-bottom: 28px; }
.signup-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.signup-logo { display: inline-block; }
.signup-logo img { display: block; }
.signup-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--if-blue);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity .15s;
}
.signup-home-link:hover { opacity: .7; }
.signup-home-link .bi { font-size: 12px; }
.signup-title {
  font-family: 'Ploni ML v2 AAA', 'Heebo', system-ui, sans-serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  color: var(--if-text-primary);
  margin: 0 0 10px;
}
.signup-sub {
  font-size: 16px;
  line-height: 1;
  color: #7b8290;
  margin: 0;
  max-width: 100%;
}
.signup-form .signup-field { display: flex; flex-direction: column; margin-bottom: 14px; }
.signup-form .signup-field label {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.signup-form .signup-field input {
  border: 1.5px solid #dee3e9;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.signup-form .signup-field input::placeholder { color: #b7bdc6; }
.signup-form .signup-field input:focus {
  outline: none;
  border-color: var(--if-blue);
  box-shadow: 0 0 0 3px rgba(35,108,192,.15);
}
.signup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }


.signup-terms span {
  line-height: 1.4;
}

.signup-terms a {
  color: var(--if-blue);
  text-decoration: underline;
}

.signup-option-extra {
  margin-bottom: 0;
}

.signup-option-101 {
  align-items: flex-start;
}

.signup-option-101 input {
  margin-top: 3px;
}

.signup-option-101-title {
  display: block;
  line-height: 1.25;
}

.signup-option-101-note {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 0;
  line-height: 1.25;
}


.plan-picker {
  border: 0; padding: 0; margin: 6px 0 14px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px;
}
.plan-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 4px;
  padding: 14px;
  border: 1.5px solid #dee3e9;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: #4a5260;
  transition: border-color .15s, background .15s, color .15s;
}
.plan-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.plan-card .plan-ico { width: 56px; height: 32px; color: #b7bdc6; margin-bottom: 4px; }
.plan-card .plan-title { font-weight: 600; font-size: 15px; color: #1a1a1a; }
.plan-card .plan-desc { font-size: 13px; color: #909090; }
.plan-card .plan-demo { font-size: 12px; color: var(--if-blue); text-decoration: underline; margin-top: 2px; }
.plan-card.is-selected {
  background: #fff;
  border-color: var(--if-blue);
}
.plan-card.is-selected .plan-ico { color: var(--if-blue); }

.signup-terms {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #4a5260;
  margin: 8px 0 18px;
}
.signup-terms input { accent-color: var(--if-blue); }
.signup-terms a { color: var(--if-blue); text-decoration: underline; }

.signup-submit {
  width: 100%;
  height: 48px;
  font-size: 18px;
  font-weight: 600;
  padding: 0;
}
.signup-login-hint { text-align: center; margin: 16px 0 0; font-size: 15px; color: #7b8290; }
.signup-login-hint a { color: var(--if-blue); font-weight: 600; text-decoration: none; }

.form-check-input {border-color: black;}

/* ===== Illustration side ===== */
.signup-art-side {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FBFBF9;
  transition: background .35s ease;
}
.signup-art-side[data-bg="cream"] { background: #FBFBF9; }
.signup-art-side[data-bg="pink"]  { background: var(--if-pink); }
.signup-art-side[data-bg="blue"]  { background: var(--if-blue); }
.signup-art-side[data-bg="green"] { background: var(--if-green); }
.signup-art-side[data-bg="gold"]  { background: var(--if-gold); }
.signup-art-side[data-bg="teal"]  { background: var(--if-teal); }

.signup-art-side .hero-bar {
  position: absolute; height: 4px; border-radius: 2px;
  pointer-events: none;
}
.signup-art-side .bar-1 { top: 11%; left: 0; width: 55%; background: var(--if-pink); }
.signup-art-side .bar-2 { top: 18%; right: 0; width: 40%; background: var(--if-blue); }
.signup-art-side .bar-3 { top: 24%; left: 0; width: 25%; background: var(--if-green); }
.signup-art-side .bar-4 { bottom: 24%; right: 0; width: 50%; background: var(--if-gold); }
.signup-art-side .bar-5 { bottom: 18%; left: 0; width: 35%; background: var(--if-pink); }
.signup-art-side .bar-6 { bottom: 11%; left: 0; width: 45%; background: var(--if-green); }

.signup-illust-stage {
  position: relative;
  z-index: 1;
  width: min(440px, 90%);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  perspective: 1400px;
}
.signup-illust-stage > .signup-illust {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
}
.signup-illust {
  position: relative;
  width: 100%;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  will-change: opacity;
}
.signup-illust.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Stagger the banded sections */
.signup-illust[data-for="multi"] .if-banded {
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity .4s ease,
    transform .5s cubic-bezier(.2,.9,.2,1);
}
.signup-illust[data-for="multi"].is-active .if-banded {
  opacity: 1;
  transform: none;
}
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(2) { transition-delay: .14s; }
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(3) { transition-delay: .28s; }
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(4) { transition-delay: .42s; }

/* Color stripe draws down */
.if-section.if-banded { position: relative; }
.if-section.if-banded::before {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--band, #236CC0);
  border-radius: 2px;
  transform-origin: top;
}
.signup-illust[data-for="multi"] .if-banded::before {
  transform: scaleY(0);
  transition: transform .5s cubic-bezier(.2,.9,.2,1);
}
.signup-illust[data-for="multi"].is-active .if-banded::before {
  transform: scaleY(1);
}
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(2)::before { transition-delay: .2s; }
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(3)::before { transition-delay: .34s; }
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(4)::before { transition-delay: .48s; }

/* Pills pop */
.signup-illust[data-for="multi"] .if-pill {
  opacity: 0;
  transform: scale(.6);
  transition:
    opacity .3s ease,
    transform .45s cubic-bezier(.3,1.5,.5,1);
}
.signup-illust[data-for="multi"].is-active .if-pill {
  opacity: 1;
  transform: scale(1);
}
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(2) .if-pill { transition-delay: .3s; }
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(3) .if-pill { transition-delay: .44s; }
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(4) .if-pill { transition-delay: .58s; }

/* Shimmer "upgrade scan" */
.signup-illust[data-for="multi"] .illust-form { position: relative; overflow: hidden; }
.signup-illust[data-for="multi"] .illust-form::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 35%,
    rgba(35,108,192,.08) 46%,
    rgba(245,191,78,.10) 50%,
    rgba(129,188,6,.08) 54%,
    transparent 65%);
  transform: translateX(120%);
  pointer-events: none;
  opacity: 0;
}
.signup-illust[data-for="multi"].is-active .illust-form::after {
  animation: upgrade-scan 1.1s cubic-bezier(.2,.8,.2,1) .1s;
}
@keyframes upgrade-scan {
  0%   { transform: translateX(120%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(-120%); opacity: 0; }
}

/* Card glow pulse */
.signup-illust[data-for="multi"].is-active .illust-form {
  animation: upgrade-glow 1s ease-out .05s;
}
@keyframes upgrade-glow {
  0%, 100% {
    box-shadow:
      0 24px 70px rgba(0,0,0,.18),
      0 0 0 0 rgba(35,108,192,0);
  }
  40% {
    box-shadow:
      0 30px 80px rgba(0,0,0,.22),
      0 0 40px 2px rgba(35,108,192,.18);
  }
}

/* Pill color flash */
.signup-illust[data-for="multi"].is-active .if-pill {
  animation: pill-flash .6s cubic-bezier(.3,1.4,.5,1);
}
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(2) .if-pill { animation-delay: .3s; }
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(3) .if-pill { animation-delay: .44s; }
.signup-illust[data-for="multi"].is-active .if-banded:nth-child(4) .if-pill { animation-delay: .58s; }
@keyframes pill-flash {
  0%   { filter: brightness(1.6) saturate(1.5); }
  60%  { filter: brightness(1.15) saturate(1.2); }
  100% { filter: none; }
}

.illust-form {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  padding: 20px 28px;
  font-family: 'Ploni ML v2 AAA', 'Heebo', system-ui, sans-serif;
  font-size: 12px;
  line-height: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.illust-form > .if-section { padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .signup-illust { transition: opacity .2s ease; }
  .signup-illust .if-banded,
  .signup-illust .if-pill,
  .signup-illust .if-banded::before { transition: none !important; animation: none !important; }
}

.if-head {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 10px; border-bottom: 2px solid #236CC0;
  margin-bottom: 2px;
}
.if-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.if-num { font-size: 11px; color: #9CA3AF; }
.if-section { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.if-section.if-banded { padding-right: 12px; }
.if-sec-top { display: flex; align-items: center; justify-content: space-between; }
.if-sec-label { font-size: 11px; font-weight: 600; }
.if-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 12px;
  font-size: 9px; font-weight: 600;
}
.if-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.if-dot span { width: 4px; height: 4px; border-radius: 50%; display: block; }
.if-row { display: flex; gap: 8px; }
.if-field { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.if-lbl { font-size: 9px; color: #9CA3AF; }
.if-input {
  height: 28px; border: 1.2px solid #D1D5DB; border-radius: 5px;
  box-sizing: border-box;
}
.if-input.if-active { border-color: #236CC0; background: #F0F6FF; }
.if-sig {
  height: 36px; border: 1.5px dashed #236CC0; border-radius: 7px;
  background: #F8FAFF;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .signup-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .signup-form-side { padding: 40px 20px; }
  .signup-art-side { display: none; }
}

/* ==========================================================================
   Auth (Login + Forgot Password)
   ========================================================================== */
.auth-section {
  min-height: 100vh;
  background: var(--if-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 28px;
  font-family: 'Ploni ML v2 AAA', 'Heebo', system-ui, sans-serif;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--if-white);
  border: 1px solid var(--if-gray-200);
  border-radius: var(--if-radius-lg);
  padding: 40px 36px 32px;
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-logo img { display: block; }

.auth-title {
  font-family: 'Ploni ML v2 AAA', 'Heebo', system-ui, sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  text-align: center;
  color: var(--if-text-primary);
  margin: 0 0 10px;
}
.auth-sub {
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: #7b8290;
  margin: 0 0 22px;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--if-blue) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.auth-back:hover { text-decoration: underline !important; }
.auth-back .bi { font-size: 13px; }

.auth-form .signup-field { margin-bottom: 14px; }

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-password-wrap input {
  width: 100%;
  padding-right: 44px;
}
.auth-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #7b8290;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.auth-eye:hover { color: var(--if-blue); background: rgba(35,108,192,.06); }
.auth-eye i { font-size: 18px; }

.auth-forgot-row {
  display: flex;
  justify-content: center;
  margin: 6px 0 18px;
}
.auth-forgot {
  font-size: 14px;
  font-weight: 600;
  color: var(--if-blue);
  text-decoration: underline;
}
.auth-forgot:hover { color: var(--if-blue); opacity: .8; }

.auth-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: #7b8290;
}
.auth-legal a {
  color: #7b8290;
  text-decoration: none;
  transition: color .15s;
}
.auth-legal a:hover { color: var(--if-blue); text-decoration: underline; }
.auth-legal span { color: #c7ccd4; }

@media (max-width: 480px) {
  .auth-card { padding: 32px 22px 24px; border-radius: 14px; }
  .auth-logo { margin-bottom: 22px; }
}

/* ==========================================================================
   Video Modal (signup demo videos)
   ========================================================================== */
.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .78);
  backdrop-filter: blur(4px);
  animation: vm-fade .18s ease-out;
}
.video-modal-box {
  position: relative;
  width: min(960px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  overflow: hidden;
  animation: vm-pop .22s ease-out;
}
.video-modal-frame, .video-modal-frame iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.video-modal-close {
  position: absolute; top: -14px;
  inset-inline-end: -14px;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: #fff; color: #1a1a1a;
  font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  z-index: 2;
}
.video-modal-close:hover { background: #f3f5f8; }
@keyframes vm-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes vm-pop {
  from { opacity: 0; transform: scale(.96) }
  to { opacity: 1; transform: scale(1) }
}
