/* v9.75 rotating login designs — Royal Blue / Clean Light / Dark Premium.
 * Design-only stylesheet for the login page (layouts/auth_design). All
 * classes are prefixed `ld-` so nothing here can leak into the rest of
 * the site (notably `.ld-badge` must not collide with Bootstrap `.badge`).
 * Adapted from the approved preview (~/workspace/your_files/
 * login-design-ideas/login-design-ideas.html): the desktop markup shows
 * at >=768px, the mobile markup below it. The form itself is identical
 * across designs — only the look changes. */
.ld-body { margin: 0; font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.ld-body button, .ld-body input { font-family: inherit; }
.ld-body button, .ld-body [role="button"] { min-height: 2.25rem; }
.ld-page { min-height: 100vh; min-height: 100dvh; }
.ld-desk { display: none; }
.ld-mob { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 768px) { .ld-desk { display: flex; } .ld-mob { display: none; } }

/* ---------- shared form pieces ---------- */
.ld-fld { margin-bottom: 15px; text-align: left; }
.ld-fld label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.ld-inwrap { position: relative; }
.ld-fld input { width: 100%; border-radius: 12px; font-size: 1rem; padding: 13px 44px 13px 42px; outline: none; transition: border-color .15s, box-shadow .15s; }
.ld-lead-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.ld-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 10px; padding: 0; }
.ld-eye svg { width: 21px; height: 21px; }
.ld-login-btn { width: 100%; border: none; cursor: pointer; font-weight: 800; font-size: 1.08rem; border-radius: 12px; padding: 14px; margin-top: 4px; }
.ld-reg-line { text-align: center; font-size: .95rem; margin: 16px 0 0; }
.ld-reg-line a { font-weight: 800; text-decoration: none; }
/* Batch 68: register consent line (privacy + terms links), above the submit button. */
.ld-consent-line { text-align: center; font-size: .82rem; line-height: 1.6; opacity: .85; margin: 14px 0 0; }
.ld-consent-line a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ld-alt-hint { margin: 6px 0 0; font-size: .78rem; opacity: .75; }
.ld-disc { margin-top: 18px; border: 1.6px dashed rgba(128, 140, 165, .55); border-radius: 12px; padding: 12px 14px 10px; text-align: left; }
.ld-disc p { margin: 4px 0 2px; font-size: .78rem; line-height: 1.6; }
/* Referrer UID box (register only) — renders ONLY for referral visits,
 * immediately before the robot-check field. Same dashed-box language
 * as .ld-disc, with a small icon; per-card colours below. */
.ld-refbox { display: flex; align-items: center; gap: 9px; margin: 2px 0 15px; border: 1.6px dashed rgba(128, 140, 165, .55); border-radius: 12px; padding: 11px 13px; text-align: left; font-size: .88rem; font-weight: 700; line-height: 1.5; }
.ld-refbox svg { width: 20px; height: 20px; flex: none; }
.ld-brand { display: flex; align-items: center; gap: 11px; }
.ld-bname { font-weight: 800; line-height: 1.2; }
.ld-bsub { font-size: .74rem; font-weight: 600; opacity: .75; letter-spacing: .04em; }
.ld-tile { width: 46px; height: 46px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: .92rem; font-family: "Hind Siliguri", sans-serif; box-shadow: 0 8px 18px -6px rgba(20, 50, 140, .5); }
.ld-logo-img { display: block; width: auto; border-radius: 12px; }

/* ---------- Design 1 : Royal Blue ---------- */
.ld-royal { position: relative; overflow: hidden; background: linear-gradient(130deg, #16296B 0%, #1E3A8A 34%, #1D4ED8 68%, #2563EB 100%); color: #fff; }
.ld-royal::before, .ld-royal::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .14); }
.ld-royal::before { width: 520px; height: 520px; right: -160px; top: -220px; }
.ld-royal::after { width: 340px; height: 340px; left: -120px; bottom: -190px; }
.ld-royal-d { align-items: stretch; }
.ld-royal-hero { width: 52%; padding: 58px 54px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.ld-royal-hero h3 { font-size: 2.35rem; font-weight: 800; line-height: 1.3; margin: 18px 0 10px; }
.ld-royal-hero p { color: #C7D6FA; font-size: 1.05rem; margin: 0 0 8px; max-width: 420px; }
.ld-royal-hero .ld-tile { background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .5); box-shadow: none; }
.ld-royal-hero .ld-logo-img { height: 46px; }
.ld-royal-points { list-style: none; margin: 18px 0 0; padding: 0; }
.ld-royal-points li { display: flex; gap: 10px; align-items: center; margin-bottom: 11px; color: #E3EBFF; font-weight: 600; font-size: .98rem; }
.ld-tick { width: 24px; height: 24px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.ld-royal-cardzone { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 48px 40px 0; position: relative; z-index: 1; }
.ld-glass-card { width: 402px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .35); border-radius: 24px; padding: 32px 30px 26px; backdrop-filter: blur(14px); box-shadow: 0 30px 60px -18px rgba(3, 10, 40, .55); color: #fff; }
.ld-glass-card .ld-clogo { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; }
.ld-glass-card .ld-clogo .ld-tile { width: 56px; height: 56px; font-size: 1.05rem; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); box-shadow: none; }
.ld-glass-card .ld-clogo .ld-logo-img { height: 56px; }
.ld-glass-card h4 { margin: 12px 0 2px; font-size: 1.32rem; font-weight: 800; }
.ld-glass-card .ld-csub { margin: 0; color: #C9D8FB; font-size: .9rem; }
.ld-glass-card .ld-fld label { color: #EAF0FF; }
.ld-glass-card .ld-fld input { background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.ld-glass-card .ld-fld input::placeholder { color: #AEC2F2; }
.ld-glass-card .ld-fld input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.ld-glass-card .ld-lead-ic { color: #BFD2FF; }
.ld-glass-card .ld-eye { color: #D7E3FF; }
.ld-royal-btn { background: #fff; color: #1D4ED8; box-shadow: 0 14px 26px -10px rgba(2, 8, 40, .55); font-size: 1.15rem; padding: 15px; }
.ld-glass-card .ld-reg-line { color: #D9E4FF; }
.ld-glass-card .ld-reg-line a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ld-glass-card .ld-consent-line { color: #D9E4FF; }
.ld-glass-card .ld-consent-line a { color: #fff; }
.ld-glass-card .ld-alt-hint { color: #C9D8FB; }
.ld-glass-card .ld-disc { border-color: rgba(255, 255, 255, .4); }
.ld-glass-card .ld-disc p { color: #C9D8FB; }
.ld-glass-card .ld-refbox { border-color: rgba(255, 255, 255, .45); color: #EAF0FF; background: rgba(255, 255, 255, .08); }
.ld-royal-m { padding: 52px 20px 26px; }
.ld-royal-m .ld-glass-card { width: 100%; padding: 26px 22px 22px; }
.ld-m-coins { display: flex; justify-content: center; margin-bottom: 14px; }

/* ---------- Design 2 : Clean Light ---------- */
.ld-clean { background: #F2F5FB; color: #1B2A4A; }
.ld-clean-d { align-items: stretch; }
.ld-clean-hero { width: 50%; padding: 56px 50px; display: flex; flex-direction: column; justify-content: center; }
.ld-clean-hero h3 { font-size: 2.3rem; font-weight: 800; line-height: 1.32; margin: 20px 0 10px; color: #14264E; }
.ld-clean-hero h3 .ld-hl { color: #2563EB; }
.ld-clean-hero p { color: #5A6B8C; font-size: 1.03rem; margin: 0; max-width: 400px; }
.ld-clean-hero .ld-tile { background: linear-gradient(135deg, #1E3A8A, #2563EB); }
.ld-clean-hero .ld-logo-img { height: 46px; }
.ld-clean-cardzone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 46px 36px 6px; }
.ld-light-card { width: 404px; background: #fff; border-radius: 24px; padding: 30px 30px 24px; box-shadow: 0 24px 48px -16px rgba(30, 58, 138, .20), 0 2px 6px rgba(30, 58, 138, .06); }
.ld-light-card .ld-clogo { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 18px; }
.ld-light-card .ld-clogo .ld-tile { width: 58px; height: 58px; font-size: 1.05rem; background: linear-gradient(135deg, #1E3A8A, #2563EB); }
.ld-light-card .ld-clogo .ld-logo-img { height: 58px; }
.ld-light-card h4 { margin: 12px 0 2px; font-size: 1.3rem; font-weight: 800; color: #14264E; }
.ld-light-card .ld-csub { margin: 0; color: #71809E; font-size: .9rem; }
.ld-light-card .ld-fld label { color: #22345E; }
.ld-light-card .ld-fld input { background: #F7F9FD; border: 1.5px solid #D9E1F0; color: #1B2A4A; }
.ld-light-card .ld-fld input::placeholder { color: #9AA9C4; }
.ld-light-card .ld-fld input:focus { border-color: #2563EB; box-shadow: 0 0 0 4px rgba(37, 99, 235, .13); background: #fff; }
.ld-light-card .ld-lead-ic { color: #7C8DB0; }
.ld-light-card .ld-eye { color: #7C8DB0; }
.ld-clean-btn { background: linear-gradient(135deg, #1D4ED8, #2563EB); color: #fff; box-shadow: 0 14px 24px -10px rgba(37, 99, 235, .55); }
.ld-light-card .ld-reg-line { color: #5A6B8C; }
.ld-light-card .ld-reg-line a { color: #1D4ED8; }
.ld-light-card .ld-alt-hint { color: #71809E; }
.ld-light-card .ld-disc p { color: #71809E; }
.ld-light-card .ld-refbox { border-color: #B9C9E8; color: #1D4ED8; background: #EFF4FE; }
.ld-badges { display: flex; gap: 10px; margin-top: 18px; width: 404px; }
.ld-badge { flex: 1; background: #fff; border: 1px solid #E1E8F4; border-radius: 14px; padding: 9px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .76rem; font-weight: 700; color: #33477A; box-shadow: 0 4px 10px rgba(30, 58, 138, .05); }
.ld-badge svg { width: 21px; height: 21px; }
.ld-clean-m { padding: 50px 20px 24px; }
.ld-clean-m .ld-m-top { text-align: center; margin-bottom: 16px; }
.ld-clean-m .ld-m-top .ld-tile { margin: 0 auto; width: 56px; height: 56px; background: linear-gradient(135deg, #1E3A8A, #2563EB); }
.ld-clean-m .ld-m-top .ld-logo-img { height: 56px; margin: 0 auto; }
.ld-clean-m .ld-m-top h4 { margin: 10px 0 0; font-size: 1.35rem; font-weight: 800; color: #14264E; }
.ld-clean-m .ld-m-top p { margin: 2px 0 0; color: #71809E; font-size: .9rem; }
.ld-clean-m .ld-light-card { width: 100%; padding: 24px 20px 20px; }
.ld-clean-m .ld-badges { width: 100%; }

/* ---------- Design 3 : Dark Premium ---------- */
.ld-dark { background: radial-gradient(900px 480px at 50% -8%, #1B2A52 0%, #0C142E 55%, #080F24 100%); color: #EDEFF5; }
.ld-dark-d { flex-direction: column; align-items: center; justify-content: center; padding: 34px 20px; }
.ld-dark-card { width: 400px; background: linear-gradient(180deg, #121E3E, #0D1730); border: 1px solid rgba(245, 185, 66, .35); border-radius: 22px; padding: 30px 30px 24px; box-shadow: 0 34px 70px -20px rgba(0, 0, 0, .75), 0 0 44px -12px rgba(245, 185, 66, .22); }
.ld-dark-card .ld-clogo { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 18px; }
.ld-dark-card .ld-clogo .ld-tile { width: 56px; height: 56px; background: linear-gradient(135deg, #3A2A07, #191104); border: 1.5px solid #F5B942; color: #F5B942; box-shadow: 0 0 22px -4px rgba(245, 185, 66, .55); }
.ld-dark-card .ld-clogo .ld-logo-img { height: 56px; }
.ld-dark-card h4 { margin: 12px 0 2px; font-size: 1.3rem; font-weight: 800; color: #FBF3DF; }
.ld-dark-card .ld-csub { margin: 0; color: #93A1C4; font-size: .9rem; }
.ld-dark-card .ld-fld label { color: #D8DEEC; }
.ld-dark-card .ld-fld input { background: #0A1328; border: 1.5px solid #2A3A63; color: #F2F4FA; }
.ld-dark-card .ld-fld input::placeholder { color: #5F6E94; }
.ld-dark-card .ld-fld input:focus { border-color: #F5B942; box-shadow: 0 0 0 4px rgba(245, 185, 66, .16); }
.ld-dark-card .ld-lead-ic { color: #8494B8; }
.ld-dark-card .ld-eye { color: #8494B8; }
.ld-dark-btn { background: linear-gradient(135deg, #FBBF24, #D97706); color: #26160A; box-shadow: 0 0 26px -4px rgba(245, 185, 66, .65), 0 14px 24px -12px rgba(0, 0, 0, .6); }
.ld-dark-card .ld-reg-line { color: #93A1C4; }
.ld-dark-card .ld-reg-line a { color: #F5B942; }
.ld-dark-card .ld-alt-hint { color: #8B99BE; }
.ld-dark-card .ld-disc { border-color: rgba(245, 185, 66, .35); }
.ld-dark-card .ld-disc p { color: #8B99BE; }
.ld-dark-card .ld-refbox { border-color: rgba(245, 185, 66, .45); color: #F5D68A; background: rgba(245, 185, 66, .07); }
.ld-dark-m { padding: 52px 20px 24px; align-items: center; }
.ld-dark-m .ld-dark-card { width: 100%; padding: 26px 22px 22px; }

@keyframes ld-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.ld-floaty { animation: ld-floaty 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ld-floaty { animation: none; } }

/* Narrow desktop: hero text shrinks before the 768px mobile switch. */
@media (min-width: 768px) and (max-width: 991px) {
  .ld-royal-hero, .ld-clean-hero { padding-left: 28px; padding-right: 28px; }
  .ld-royal-hero h3, .ld-clean-hero h3 { font-size: 1.8rem; }
  .ld-royal-cardzone { padding-right: 24px; }
  .ld-clean-cardzone { padding-right: 24px; }
}

 /* Batch 74 — register password-strength meter (display-only). */
 .ld-pw-meter { margin-top: 8px; }
 .ld-pw-meter-track { height: 6px; border-radius: 999px; background: rgba(100,116,139,.25); overflow: hidden; }
 .ld-pw-meter-fill { height: 100%; width: 0; border-radius: 999px; background: #DC2626; transition: width .2s ease, background-color .2s ease; }
 .ld-pw-meter-label { display: block; margin-top: 4px; font-size: .78rem; }
