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

/* Ankprabha CRM - login.css (self-contained) */

/* ===== Variables ===== */
:root {
  --or1: #ffa21a;
  --or2: #f47b06;
  --or3: #e86a00;
  --or-grad: linear-gradient(90deg, #ff9500 0%, #f47b06 100%);
  --or-btn: linear-gradient(90deg, #ff8c00 0%, #f47b06 50%, #e65100 100%);
  --navy: #152044;
  --navy2: #09122c;
  --navy-grad: linear-gradient(100deg, #071330 0%, #0d1e56 45%, #182e75 100%);
  --ink: #1f2748;
  --mute: #64748b;
  --mute-light: #94a3b8;
  --bg: #fffbf5;
  --card: #ffffff;
  --line: #f1f3f7;
  --blue: #2563eb;
  --pink: #f43f5e;
  --violet: #7c3aed;
  --green: #10b981;
  --r: 20px;
  --sh: 0 8px 24px rgba(0, 0, 0, 0.05);
  --sh-lg: 0 20px 50px rgba(244, 123, 6, 0.16);
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* ===== Components ===== */
.badge-s{font-size:11px;font-weight:600;padding:3px 10px;border-radius:20px;white-space:nowrap}
.bs-active{background:#dcf5e6;color:#0b7a3b}.bs-followup{background:#fff0d1;color:#b36500}.bs-inactive{background:#ffe0e5;color:#c0224a}.bs-archived{background:#e8eaf2;color:#566}
.btn-or{background:linear-gradient(90deg,var(--or1),var(--or3));color:#fff;padding:12px 22px;border-radius:14px;font-weight:700;font-size:15px;box-shadow:0 8px 20px rgba(244,123,6,.35);transition:.2s}.btn-or:hover{transform:translateY(-2px)}
.btn-ol{background:#fff8ee;color:var(--or2);border:1.5px solid #ffd49b;padding:12px 22px;border-radius:14px;font-weight:600}
.modal{position:fixed;inset:0;background:rgba(13,27,74,.55);display:none;align-items:center;justify-content:center;padding:16px;z-index:100}.modal.open{display:flex}
.mbox{background:#fff;border-radius:24px;width:min(560px,100%);max-height:92vh;overflow:auto;padding:26px;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.mbox h3{font-size:20px;color:var(--navy2);margin-bottom:16px;display:flex;justify-content:space-between}.mbox h3 button{background:none;font-size:24px;color:var(--mute)}
.fg{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fg .full{grid-column:1/-1}
.fl label{display:block;font-size:12px;font-weight:600;color:var(--mute);margin-bottom:5px}
.fl input,.fl select{width:100%;padding:12px 14px;border:1.5px solid #e6e8f2;border-radius:12px;background:#f6f7fb;font:inherit;color:var(--ink)}.fl input:focus,.fl select:focus{outline:0;border-color:var(--or2);background:#fff;box-shadow:0 0 0 4px rgba(244,123,6,.12)}
.fl .e{color:#d6204a;font-size:12px;min-height:14px}.macts{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy2);color:#fff;padding:12px 22px;border-radius:14px;z-index:200;font-weight:500;box-shadow:0 10px 30px rgba(0,0,0,.3)}
@media(max-width:560px){.fg{grid-template-columns:1fr}}

/* ===== Base ===== */
*{box-sizing:border-box;margin:0}html,body{height:100%}
body{font-family:var(--font);color:var(--ink);background:radial-gradient(1200px 500px at 50% 100%,#ffeccc,transparent),var(--bg);-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}button{font-family:inherit;cursor:pointer;border:0}
:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.page{width:100%;max-width:1400px;margin:0 auto;padding:0 clamp(12px,2.5vw,32px) 40px}
.empty{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:60px 20px;text-align:center;margin-top:20px}
.empty h2{margin-bottom:8px}.empty p{color:var(--mute)}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ===== Page: Login ===== */
/* ========================================================
   Ankprabha Login Page Styles - Glassmorphism & Minimal UI
   ======================================================== */

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: radial-gradient(circle at 15% 20%, #fffbf2 0%, #ffedd5 45%, #f1e9ff 100%);
  position: relative;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
}

/* Background organic fluid waves & decorative botanical leaves */
.bg-waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 600px 350px at 0% 100%, rgba(255, 179, 71, 0.45), transparent 70%),
    radial-gradient(ellipse 650px 450px at 100% 0%, rgba(255, 162, 26, 0.25), transparent 60%),
    radial-gradient(ellipse 800px 300px at 50% 100%, rgba(255, 190, 90, 0.35), transparent 70%);
  z-index: 0;
}

.bg-leaves {
  position: fixed;
  left: -20px;
  bottom: 10%;
  width: 280px;
  height: 380px;
  background: url('../assets/blue-golden-leaves.png') no-repeat left center / contain;
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-5deg);
}

/* --------------------------------------------------------
   Outer Glassmorphism Card Container (Desktop: Image 2)
   -------------------------------------------------------- */
.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #fbfbfd url('../assets/bottom-wave-decoration.png') no-repeat center center / cover;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 80px rgba(244, 123, 6, 0.22), 0 10px 30px rgba(13, 27, 74, 0.08);
  overflow: hidden;
}

/* Top-Right Golden-Orange Fluid Corner Wave (Circled in red by user) */
.shell-corner-wave {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 220px;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  border-top-right-radius: 36px;
}

.shell-corner-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Bottom Golden Dunes & Waves Landscape (Circled in red by user) */
.shell-bottom-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 175px;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.shell-bottom-waves svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------
   Left Hero Column (Desktop View)
   -------------------------------------------------------- */
.hero {
  padding: clamp(32px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 3;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(244, 123, 6, 0.3);
}

.brand-titles h2 {
  font-size: 22px;
  font-weight: 800;
  color: #09122c;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.brand-titles small {
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  display: block;
}

.hero-body {
  margin-top: 36px;
  position: relative;
  z-index: 3;
}

.hero-body h1 {
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 800;
  color: #09122c;
  line-height: 1.12;
  letter-spacing: -0.5px;
}

.hero-body h1 em {
  font-style: normal;
  color: #f97316;
}

.hero-tagline {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.45;
}

.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.chk-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f97316;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.35);
  flex-shrink: 0;
}

/* 3D Visual Art (Mandala + Analytics Laptop) */
.hero-visual {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 420px;
  height: 400px;
  pointer-events: none;
  z-index: 2;
}

.visual-mandala {
  position: absolute;
  right: 30px;
  top: 25px;
  width: 310px;
  height: 310px;
  opacity: 0.78;
  filter: drop-shadow(0 0 30px rgba(255, 179, 71, 0.4));
  animation: slowSpin 120s linear infinite;
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.visual-laptop {
  position: absolute;
  right: 32px;
  bottom: 68px;
  width: 295px;
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(13, 27, 74, 0.24));
  z-index: 3;
}

/* --------------------------------------------------------
   Right Login Card (Image 1 & Image 2)
   -------------------------------------------------------- */
.card-l {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 20px;
  border-radius: 28px;
  padding: 34px 34px 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

.card-header {
  text-align: center;
  margin-bottom: 20px;
}

.card-logo-img {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(244, 123, 6, 0.35);
}

.card-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #09122c;
  letter-spacing: -0.3px;
}

.card-header p {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
  margin-top: 2px;
}

/* Form inputs & styling */
.card-l form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-grp label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: block;
  margin-bottom: 6px;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 14px;
  transition: all 0.2s ease;
}

.input-wrap:focus-within {
  border-color: #f97316;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(249, 115, 22, 0.14);
}

.input-icon {
  display: grid;
  place-items: center;
  color: #64748b;
  flex-shrink: 0;
}

.input-wrap input {
  flex: 1;
  border: 0;
  background: none;
  padding: 13px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  outline: 0;
  min-width: 0;
}

.input-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.eye-btn {
  background: none;
  border: 0;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: grid;
  place-items: center;
  transition: color 0.2s;
}

.eye-btn:hover {
  color: #f97316;
}

/* Remember me & Forgot Password */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-top: -2px;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #334155;
  font-weight: 500;
  user-select: none;
}

.remember-label input {
  accent-color: #f97316;
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.forgot-link {
  color: #f97316;
  font-weight: 600;
  transition: color 0.15s;
}

.forgot-link:hover {
  color: #c2410c;
  text-decoration: underline;
}

/* Error message */
.err {
  color: #d6204a;
  font-size: 13px;
  font-weight: 500;
  min-height: 18px;
  text-align: center;
}

/* Action Buttons */
.btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 9999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(90deg, #ff9500 0%, #f47b06 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 8px 22px rgba(244, 123, 6, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 123, 6, 0.52);
}

.btn-primary:active {
  transform: translateY(0);
}

.or-separator {
  position: relative;
  text-align: center;
  margin: 6px 0;
}

.or-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.or-separator span {
  position: relative;
  background: #ffffff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.btn-demo {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.06);
}

.btn-demo:hover {
  background: #fff7ed;
  border-color: #f97316;
  transform: translateY(-1px);
}

/* Card bottom lotus & copyright */
.card-bottom {
  margin-top: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bottom-lotus {
  width: 44px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 6px rgba(244, 123, 6, 0.25));
}

.copy {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* --------------------------------------------------------
   Responsive Breakpoints - Minimal & Elegant UI (Image 1)
   -------------------------------------------------------- */
@media (max-width: 920px) {
  body {
    padding: 20px 14px;
    background: radial-gradient(circle at 50% 10%, #fff7eb 0%, #fff0da 50%, #fef3e2 100%);
  }

  .bg-leaves {
    left: -40px;
    bottom: 25%;
    width: 220px;
    height: 300px;
    opacity: 0.5;
  }

  .shell {
    grid-template-columns: 1fr;
    max-width: 420px;
    min-height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .shell-corner-wave {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 180px;
    border-radius: 0;
  }

  .shell-bottom-waves {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    border-radius: 0;
  }

  .hero {
    display: none;
  }

  .card-l {
    margin: 0;
    padding: 34px 26px 22px;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(244, 123, 6, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.8);
  }
}


@media (max-width: 920px) {
  body {
    padding: 20px 14px;
    background: radial-gradient(
      circle at 50% 10%,
      #fff7eb 0%,
      #fff0da 50%,
      #fef3e2 100%
    );
  }

  .bg-leaves {
    left: -40px;
    bottom: 25%;
    width: 220px;
    height: 300px;
    opacity: .5;
  }

  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: start;
    max-width: 520px;
    width: 100%;
    min-width: 0;
    min-height: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .shell-corner-wave {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 180px;
    border-radius: 0;
  }

  .shell-bottom-waves {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    border-radius: 0;
  }

  .hero {
    display: flex;
    min-height: 430px;
    padding: 22px 22px 125px;
    overflow: hidden;
    pointer-events: auto;
    z-index: 1;
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, .92),
      rgba(255, 239, 207, .78)
    );
    border-radius: 30px 30px 0 0;
  }

  .hero-brand {
    gap: 10px;
    align-items: center;
  }

  .brand-logo-img {
    width: 42px;
    height: 42px;
  }

  .brand-titles h2 { font-size: 17px; }
  .brand-titles small { font-size: 10px; }

  .hero-body {
    display: block;
    margin-top: 24px;
    max-width: 74%;
    z-index: 3;
  }

  .hero-body h1 {
    font-size: clamp(27px, 7.5vw, 36px);
    line-height: 1.1;
    letter-spacing: -.7px;
  }

  .hero-tagline {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
  }

  .hero-checklist {
    margin-top: 17px;
    gap: 8px;
  }

  .hero-checklist li {
    gap: 8px;
    font-size: 12px;
  }

  .chk-badge {
    width: 19px;
    height: 19px;
    font-size: 10px;
  }

  .hero-visual {
    position: absolute;
    top: 95px;
    right: -42px;
    bottom: 20px;
    width: 220px;
    height: 300px;
    z-index: 2;
  }

  .visual-mandala {
    top: 0;
    right: -5px;
    width: 205px;
    height: 205px;
    opacity: .72;
  }

  .visual-laptop {
    display: block;
    right: 49px;
    bottom: 78px;
    width: 165px;
  }

  .card-l {
    width: 100%;
    min-width: 0;
    margin: -92px 0 0;
    padding: 20px 22px 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 20px 60px rgba(244, 123, 6, .16);
    border: 1px solid rgba(255, 255, 255, .8);
    z-index: 3;
  }

  .card-header { display: none !important; }
  .card-l form { gap: 10px; }

  .field-grp label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .input-wrap input {
    padding: 10px 0;
    font-size: 14px;
  }

  .btn {
    padding: 11px 16px;
    font-size: 14px;
  }

  .card-bottom {
    margin-top: 13px;
    gap: 5px;
  }

  .bottom-lotus { width: 36px; }
  .copy { font-size: 10px; }

  .card-l form,
  .field-grp,
  .input-wrap {
    min-width: 0;
    width: 100%;
  }

  .form-row {
    min-width: 0;
    gap: 10px;
  }

  .remember-label { min-width: 0; }
  .forgot-link { white-space: nowrap; }
}

@media (max-width: 380px) {
  body { padding: 14px 10px; }

  .card-l {
    padding: 28px 18px 20px;
  }

  .form-row {
    font-size: 12px;
    gap: 6px;
  }
}
