/* ================================================
   JADMART – Login Page Styles
   ================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --grad-start:  #e91e8c;
  --grad-mid:    #c41482;
  --grad-end:    #7b1fa2;
  --orange:      #ff6d00;
  --yellow:      #ffab00;
  --pink-btn-s:  #e91e8c;
  --pink-btn-e:  #ff6d00;
  --forgot:      #e91e8c;
  --signup:      #ffab00;
  --text-dark:   #1a1a2e;
  --text-mid:    #555;
  --radius-card: 28px;
  --radius-inp:  14px;
  --shadow-card: 0 8px 40px rgba(0,0,0,0.14);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
}

/* ── PAGE WRAPPER ─────────────────────────────── */
.jm-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .jm-page {
    flex-direction: row;
  }
}

/* ── GRADIENT BACKGROUND (shared) ─────────────── */
.jm-desktop-brand,
.jm-mobile-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ff3c9e 0%, #d31476 30%, #7b1fa2 65%, #4a148c 100%);
}

/* ── DECORATIVE BLOBS ──────────────────────────── */
.jm-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
}
.jm-blob--tl {
  width: 220px; height: 220px;
  top: -60px; left: -60px;
  background: radial-gradient(circle, #ffab00, transparent 70%);
}
.jm-blob--br {
  width: 180px; height: 180px;
  bottom: 30px; right: -50px;
  background: radial-gradient(circle, #ff6d00, transparent 70%);
}

/* ── FLOATING BAG ICONS ────────────────────────── */
.jm-floating-bag {
  position: absolute;
  pointer-events: none;
  color: rgba(255,255,255,0.75);
  line-height: 1;
}
.jm-floating-bag--l {
  font-size: 72px;
  top: 60px; left: 10px;
  transform: rotate(-12deg);
  animation: floatL 4s ease-in-out infinite;
}
.jm-floating-bag--r {
  font-size: 68px;
  top: 110px; right: 10px;
  transform: rotate(10deg);
  animation: floatR 5s ease-in-out infinite;
}
@keyframes floatL {
  0%,100% { transform: rotate(-12deg) translateY(0); }
  50%      { transform: rotate(-12deg) translateY(-10px); }
}
@keyframes floatR {
  0%,100% { transform: rotate(10deg) translateY(0); }
  50%      { transform: rotate(10deg) translateY(-12px); }
}

/* ── BRAND (shared centre content) ─────────────── */
.jm-brand-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.jm-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffab00 0%, #ff6d00 100%);
  font-size: 36px;
  color: #fff;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(255,109,0,0.45);
}

.jm-brand-name {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
  color: #fff;
}
.jm-brand-name span { color: #ffab00; }

.jm-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

/* ── WELCOME TEXT ──────────────────────────────── */
.jm-welcome-mobile h2,
.jm-welcome-desktop h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.jm-welcome-mobile p,
.jm-welcome-desktop p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* ── MOBILE HERO ────────────────────────────────── */
.jm-mobile-hero {
  padding: 56px 20px 48px;
}
.jm-mobile-hero .jm-floating-bag--l { font-size: 64px; top: 50px; left: 6px; }
.jm-mobile-hero .jm-floating-bag--r { font-size: 60px; top: 90px; right: 6px; }

/* ── DESKTOP BRAND PANEL ───────────────────────── */
.jm-desktop-brand {
  width: 48%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 0;
}
.jm-desktop-brand .jm-floating-bag--l { font-size: 100px; top: 80px; left: 20px; }
.jm-desktop-brand .jm-floating-bag--r { font-size: 90px;  top: 140px; right: 20px; }
.jm-desktop-brand .jm-brand-inner { padding: 0 20px 40px; }
.jm-desktop-brand .jm-logo-icon   { width: 86px; height: 86px; font-size: 44px; }
.jm-desktop-brand .jm-brand-name  { font-size: 3rem; }
.jm-desktop-brand .jm-welcome-desktop h2 { font-size: 2.2rem; }

.jm-wave-desktop {
  width: 100%;
  margin-top: auto;
  line-height: 0;
}
.jm-wave-desktop svg { width: 100%; height: 60px; display: block; }

/* ── FORM PANEL ─────────────────────────────────── */
.jm-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #9c27b0 0%, #6a0080 100%);
}

@media (min-width: 992px) {
  .jm-form-panel {
    background: #f4f6fb;
    justify-content: center;
    align-items: center;
  }
}

/* ── CARD WRAP ──────────────────────────────────── */
.jm-card-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 20px;
}

@media (min-width: 992px) {
  .jm-card-wrap {
    flex: unset;
    width: 100%;
    max-width: 480px;
    padding: 0;
  }
}

/* ── CARD ───────────────────────────────────────── */
.jm-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px 28px 24px;
  box-shadow: var(--shadow-card);
  margin-top: -24px;
  position: relative;
  z-index: 5;
}

@media (min-width: 992px) {
  .jm-card {
    margin-top: 0;
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  }
}

.jm-card-heading {
  margin-bottom: 24px;
}
.jm-card-heading h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.jm-card-heading p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin: 0;
}

/* ── FIELD GROUP ─────────────────────────────────── */
.jm-field-group { margin-bottom: 18px; }

.jm-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.jm-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e8e8ef;
  border-radius: var(--radius-inp);
  background: #fff;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.jm-input-wrap:focus-within {
  border-color: var(--grad-start);
  box-shadow: 0 0 0 3px rgba(233,30,140,0.12);
}

.jm-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffab00 0%, #e91e8c 100%);
  color: #fff;
  font-size: 1.2rem;
  border-top-left-radius: var(--radius-inp);
  border-bottom-left-radius: var(--radius-inp);
}

.jm-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: transparent;
  height: 52px;
}
.jm-input::placeholder { color: #aaa; }

.jm-eye-btn {
  background: none;
  border: none;
  padding: 0 14px;
  color: #555;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  height: 52px;
  display: flex;
  align-items: center;
  position: absolute;
  right: 0;
  z-index: 1;
}
.jm-eye-btn:hover { color: var(--grad-start); }

/* ── FORGOT ──────────────────────────────────────── */
.jm-forgot {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forgot);
  text-decoration: none;
  transition: opacity 0.2s;
}
.jm-forgot:hover { opacity: 0.75; }

/* ── LOGIN BUTTON ────────────────────────────────── */
.jm-login-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--pink-btn-s) 0%, var(--orange) 50%, var(--yellow) 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(233,30,140,0.4);
  margin-bottom: 24px;
}
.jm-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(233,30,140,0.5);
}
.jm-login-btn:active { transform: translateY(0); }

/* ── DIVIDER ─────────────────────────────────────── */
.jm-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.jm-divider span {
  flex: 1;
  height: 1px;
  background: #e4e4ef;
}
.jm-divider p {
  font-size: 0.82rem;
  color: #aaa;
  margin: 0;
  white-space: nowrap;
}

/* ── SOCIAL BUTTONS ──────────────────────────────── */
.jm-social-row {
  display: flex;
  gap: 12px;
}

.jm-social-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1.5px solid #e8e8ef;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.jm-social-btn:hover {
  border-color: #ccc;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* ── SIGN UP LINK ────────────────────────────────── */
.jm-signup-text {
  margin-top: 22px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
}

@media (min-width: 992px) {
  .jm-signup-text { color: var(--text-mid); }
}

.jm-signup-link {
  color: var(--signup);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--signup);
  transition: opacity 0.2s;
}
.jm-signup-link:hover { opacity: 0.75; }

/* ── TRUST BADGES ────────────────────────────────── */
.jm-trust-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
  padding: 0 10px;
}

.jm-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

@media (min-width: 992px) {
  .jm-desktop-brand .jm-trust-item { color: rgba(255,255,255,0.9); }
}

.jm-trust-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}
.jm-trust-icon--red  { background: rgba(233,30,140,0.55); }
.jm-trust-icon--blue { background: rgba(33,150,243,0.55); }
.jm-trust-icon--teal { background: rgba(0,188,212,0.55); }

/* ── WAVE ─────────────────────────────────────────── */
.jm-wave {
  width: 100%;
  margin-top: auto;
  line-height: 0;
  padding-top: 16px;
}
.jm-wave svg { width: 100%; height: 50px; display: block; }
