/* RING BD – animated Bangladesh background for login / register / recovery pages */
#ringbd-bg{position:fixed;inset:0;width:100%;height:100%;z-index:-1;display:block}
body.ringbd-welcome{background:linear-gradient(180deg,#06192e 0%,#42285a 35%,#e0561f 75%,#ffbf48 100%) fixed}
body.ringbd-welcome::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(8,6,20,.54) 0%,rgba(8,6,20,.26) 50%,rgba(8,6,20,.04) 100%)}
body.ringbd-welcome .wrapper,body.ringbd-welcome .login{position:relative;z-index:1;background:transparent!important}
body.ringbd-welcome .login_left_combo_parent{background:transparent;box-shadow:none}
body.ringbd-welcome .login_left_combo_parent>svg{display:none}
body.ringbd-welcome .login_left_combo,body.ringbd-welcome .login_left_combo h1,body.ringbd-welcome .login_left_combo p{color:#fff;text-shadow:0 4px 30px rgba(0,0,0,.5)}
body.ringbd-welcome .login_left_combo .img{display:none}
body.ringbd-welcome .login_innre{background:rgba(14,10,30,.46);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:34px 32px;margin:24px;box-shadow:0 20px 60px rgba(0,0,0,.45);color:#fff}
body.ringbd-welcome .login_innre .title,body.ringbd-welcome .login_innre .desc,body.ringbd-welcome .login_innre label{color:#fff}
body.ringbd-welcome .wow_form_fields input{background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.28)!important;color:#fff!important;border-radius:12px}
body.ringbd-welcome .wow_form_fields input::placeholder{color:rgba(255,255,255,.6)}
body.ringbd-welcome .btn-main{background:linear-gradient(90deg,#f42a41,#e0561f)!important;border:0!important;border-radius:12px}
body.ringbd-welcome .login_innre a{color:#ffd36b}
@media (prefers-reduced-motion:reduce){#ringbd-bg{display:none}}

/* Register / recovery extras so every welcome page matches the login design */
body.ringbd-welcome select,body.ringbd-welcome textarea{background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.28)!important;color:#fff!important;border-radius:12px}
body.ringbd-welcome select option{color:#111;background:#fff}
body.ringbd-welcome .terms label,body.ringbd-welcome .login_innre p,body.ringbd-welcome .login_innre span{color:#fff}
body.ringbd-welcome .login_innre .errors{color:#fff}

/* === Adda Premium design lock (owner design file) === */
body.ringbd-welcome .login_innre{background:linear-gradient(160deg,rgba(22,17,42,.55),rgba(10,8,24,.62));-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);border:1px solid rgba(255,255,255,.55);border-radius:28px;box-shadow:0 24px 70px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.5)}
body.ringbd-welcome .login_innre .errors:empty{display:none!important}
body.ringbd-welcome .login_left_combo h1{font-family:Poppins,Inter,'Hind Siliguri',sans-serif;font-weight:800;font-size:clamp(38px,4.4vw,62px);line-height:1.06;letter-spacing:-.5px}
body.ringbd-welcome .login_left_combo p{font-size:17px;color:rgba(255,255,255,.92)}
.rb-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}
.rb-chip{padding:8px 14px;border-radius:999px;background:rgba(10,10,25,.42);border:1px solid rgba(255,255,255,.45);color:#fff;font-size:12.5px;font-weight:600;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
/* G-03 (2026-11-25, stream B): sprite icon inside the chip — 16px stroke icon (currentColor = white), 6px gap to the label. */
.rb-chip .rb-ic{margin-right:6px;vertical-align:-3px}
.rb-flagbar{height:6px;border-radius:99px;background:#006a4e;position:relative;margin-top:20px;max-width:520px;box-shadow:0 4px 18px rgba(0,0,0,.35)}
.rb-flagbar i{position:absolute;left:26px;top:50%;width:15px;height:15px;margin-top:-7.5px;border-radius:50%;background:#f42a41;box-shadow:0 0 0 3px rgba(244,42,65,.3)}
body.ringbd-welcome .wow_form_fields input:focus{border-color:#ffd36b!important;box-shadow:0 0 0 4px rgba(255,211,107,.22);outline:none}
body.ringbd-welcome .btn-main{background:linear-gradient(135deg,#ff4d5e,#d61f36);box-shadow:0 14px 32px rgba(214,31,54,.45);font-weight:700}

/* === 100% match pass (owner reference screenshot) === */
body.ringbd-welcome .login_innre .title.main{color:#fff!important;font-size:34px!important;font-weight:800}
.rb-grad{background:linear-gradient(90deg,#ffd36b,#ff7a3d,#ff4d6d);-webkit-background-clip:text;background-clip:text;color:transparent}
body.ringbd-welcome .login_innre .desc{color:#fff!important;font-size:15px}
.rb-reg{color:#ffd36b!important;font-weight:700;text-decoration:none}
body.ringbd-welcome .login_innre .signup__{display:none}
body.ringbd-welcome .wow_form_fields{position:relative}
.rb-pass input{padding-right:58px!important}
.rb-eye{position:absolute;right:7px;bottom:7px;width:38px;height:36px;border:0;border-radius:10px;background:linear-gradient(135deg,#ff4d6d,#e8364a);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:3}
body.ringbd-welcome input[type=checkbox]{accent-color:#f43f5e;width:17px;height:17px;vertical-align:-3px}
body.ringbd-welcome .footer{position:fixed;left:0;right:0;bottom:8px;text-align:center;z-index:2}
body.ringbd-welcome .footer a{color:rgba(255,255,255,.85)!important}

/* === final polish === */
body.ringbd-welcome .rb-eye{background:linear-gradient(135deg,#ff4d6d,#e8364a)!important}
body.ringbd-welcome .login_innre .forgot_password a{color:#ffd36b!important;font-weight:700}
.rb-flagbar{width:110px}
body.ringbd-welcome .login{padding-bottom:46px}

/* === HUBU LOCK v2 — owner's login file applied exactly (2026-10-24) === */
body.ringbd-welcome .login_innre{max-width:560px;padding:44px 42px 36px;border-radius:34px;background:rgba(255,255,255,.28);border:1px solid rgba(255,255,255,.45);-webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%);box-shadow:0 30px 90px rgba(0,0,0,.40);animation:rbrise .7s ease both}
@keyframes rbrise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
body.ringbd-welcome .login_innre .title.main{font-size:30px!important;font-weight:600}
.rb-wave{display:inline-block;animation:rbwave 2.2s infinite;transform-origin:70% 70%}
@keyframes rbwave{0%,60%,100%{transform:rotate(0deg)}10%,30%{transform:rotate(14deg)}20%{transform:rotate(-8deg)}40%{transform:rotate(-4deg)}50%{transform:rotate(10deg)}}
body.ringbd-welcome .login_innre .desc{font-size:15.5px;color:rgba(255,255,255,.88)!important}
body.ringbd-welcome .wow_form_fields label{font-size:15px;color:rgba(255,255,255,.92);margin:16px 0 8px;display:block}
body.ringbd-welcome .wow_form_fields input{height:58px;border-radius:14px;border:1px solid rgba(255,255,255,.35)!important;background:rgba(0,0,0,.28)!important;padding:0 20px;font-size:16px;color:#fff!important}
body.ringbd-welcome .wow_form_fields input:focus{border-color:#ffd36b!important;box-shadow:0 0 0 4px rgba(255,211,107,.2);background:rgba(0,0,0,.4)!important;outline:none}
.rb-field{position:relative;display:block}
body.ringbd-welcome .rb-eye{position:absolute;right:9px;top:50%;bottom:auto;transform:translateY(-50%);width:46px;height:38px;border:0;border-radius:8px;background:#e8364a!important;display:grid;place-items:center;cursor:pointer;z-index:3}
body.ringbd-welcome .forgot_password{font-size:15px;margin-top:20px}
body.ringbd-welcome input[type=checkbox]{width:20px;height:20px;accent-color:#e8364a;vertical-align:-4px}
body.ringbd-welcome .login_innre .btn-main{height:58px;border-radius:14px;background:linear-gradient(135deg,#ff4d5e,#e8364a 55%,#c92438)!important;box-shadow:0 14px 30px rgba(232,54,74,.5);font:600 19px Poppins,Inter,sans-serif;color:#fff!important;transition:.2s}
body.ringbd-welcome .login_innre .btn-main:hover{transform:translateY(-2px);filter:brightness(1.08)}
.rb-or{display:flex;align-items:center;gap:12px;margin:24px 0 16px;font-size:13px;color:rgba(255,255,255,.7);font-family:'Hind Siliguri',Poppins,sans-serif}
.rb-or::before,.rb-or::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.3)}
.rb-social{display:flex;gap:12px}
.rb-social button{flex:1;height:50px;border-radius:12px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.1);color:#fff;font:500 15px Poppins,Inter,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:.2s}
.rb-social button svg{width:20px;height:20px;flex:none}
.rb-social button:hover{background:rgba(255,255,255,.22);transform:translateY(-1px)}
body.ringbd-welcome .random_users{display:none!important}
body.ringbd-welcome .login_left_combo h1{font-weight:700;font-size:clamp(36px,5vw,66px);line-height:1.12;letter-spacing:0}
body.ringbd-welcome .login_left_combo p{font-size:clamp(17px,1.9vw,24px);font-weight:300;line-height:1.55;max-width:540px;color:#fff}
.rb-grad{background:linear-gradient(90deg,#ffd36b,#ff5a5f);-webkit-background-clip:text;background-clip:text;color:transparent;display:block;font-size:1.15em;font-family:'Hind Siliguri',sans-serif}
.rb-chips{gap:10px;margin-top:26px}
.rb-chip{padding:8px 16px;border-radius:30px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);font-size:14px;font-weight:400;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.rb-flagbar{display:flex;width:120px;height:5px;border-radius:5px;overflow:hidden;margin-top:30px;background:transparent;max-width:none;box-shadow:none;position:static}
.rb-flagbar i{position:static;flex:1;width:auto;height:auto;margin:0;border-radius:0;box-shadow:none;background:transparent}
.rb-flagbar i:first-child{background:#006a4e}
.rb-flagbar i:last-child{background:#f42a41}
@media(max-width:900px){body.ringbd-welcome .login_innre{padding:30px 22px;border-radius:26px}}

/* hubu: remember-me checkbox = file brand red */
body.ringbd-welcome .terms input[type=checkbox]:checked+label::before{background-color:#e8364a;border-color:#e8364a}

/* LOGO LOCKUP FIX v3: welcome logo bigger so the mark reads */
body.ringbd-welcome .login_left_combo .logo img{max-width:300px;}

/* LOGO DESKTOP BIGGER v4: welcome logo larger on desktop only */
@media(min-width:901px){body.ringbd-welcome .login_left_combo .logo img{max-width:400px;}}

/* FOOTER SCROLL FIX 2026-11-14: on the stacked (mobile) layout the fixed footer
   never scrolled and covered the form bottom. Return it to normal document flow. */
@media(max-width:930px){
body.ringbd-welcome .footer{position:static;text-align:center;padding:18px 16px 30px}
body.ringbd-welcome .login{padding-bottom:0}
body.ringbd-welcome .welcome-footer{line-height:2.1}
}

/* 2027 WELCOME & REGISTER POLISH */
body.ringbd-welcome .terms a.main,
body.ringbd-welcome .signup__ a.main,
body.ringbd-welcome .forgot_password a {
    color: #ffd36b !important;
    font-weight: 600 !important;
    text-decoration: underline;
}
body.ringbd-welcome .terms label {
    color: rgba(255,255,255,0.92) !important;
}
@media(min-width:931px){
    body.ringbd-welcome .login {
        padding-bottom: 120px !important;
    }
    body.ringbd-welcome .login_left_combo {
        padding-bottom: 110px !important;
    }
}

/* === X3B ELITE FIXES 2026-11-21 (X3-01 / X3-02 / X3-04 / B2 / B5) === */
/* B2: hero scrolled away on load was the autofocus on #username
   (welcome/content.phtml:22) - the attribute itself is removed there. */
/* X3-04: "Welcome Back! 👋" wrapped the emoji onto its own line at 360px. */
@media(max-width:400px){
body.ringbd-welcome .login_innre .title.main{font-size:24px!important;white-space:nowrap}
}
/* X3-01 + B5: the fixed footer ran full-width UNDER the glass card (desktop)
   and straight across the District dropdown on /register. Constrain it to
   the left column, above the card, and tighten it + lift the hero chips /
   flag bar so the flag bar stays clear of the footer top edge. */
@media(min-width:931px){
body.ringbd-welcome .footer{left:24px!important;right:auto!important;width:min(560px,46vw)!important;z-index:5!important}
body.ringbd-welcome .footer .welcome-footer{line-height:1.7!important}
body.ringbd-welcome .footer .welcome-apps{margin:4px 0 6px!important}
body.ringbd-welcome .rb-chips{margin-top:6px!important}
body.ringbd-welcome .rb-flagbar{margin-top:2px!important}
}
/* X3-01 (banner over the Timeline pill) + X3-02 (banner over Username at
   768px): the bottom-left floating cookie banner sits on hero/form content
   at every width, so on welcome pages move it to a compact top strip, clear
   of the logo (logo top ~90px) and of every field. Mobile <=430px keeps the
   vendor bottom banner (verified fine there; the form scrolls clear). */
@media(min-width:431px){
body.ringbd-welcome .cc-window.cc-floating{top:10px!important;bottom:auto!important;left:10px!important;right:auto!important;max-width:640px!important;flex-direction:row!important;align-items:center!important;padding:10px 16px!important;gap:14px!important}
body.ringbd-welcome .cc-window.cc-floating .cc-message{margin:0!important;flex:1;font-size:14px!important;line-height:1.4!important}
body.ringbd-welcome .cc-window.cc-floating .cc-compliance{flex:none!important}
body.ringbd-welcome .cc-window.cc-floating .cc-btn{padding:.5em 1.2em!important}
}

/* === WELCOME-FIX 2026-11-21 (IMG_1186: login form invisible in glass card at 390px) === */
/* F1: logo is a 1880x300 wordmark; staging content.phtml carries height="300" and
   max-width caps width at 300px, so it rendered 300x300 (6.27x vertical stretch).
   height:auto restores true proportions: 300x48 mobile / 400x64 desktop. */
body.ringbd-welcome .login_left_combo .logo img{height:auto!important}
/* F2: mobile hero (799px) pushed the glass card below the fold, and the
   :before/:after flex spacers centred the form inside the 824px card, so the
   visible card slice was empty. Kill spacer growth + min-height on mobile so
   the form starts at the card top; tighten hero margins. */
@media(max-width:640px){
body.ringbd-welcome .login_left_combo .logo{margin:16px 0 0!important}
body.ringbd-welcome .login_left_combo h1{margin:18px 0 0!important}
body.ringbd-welcome .login_left_combo p{margin:8px 0 16px!important}
body.ringbd-welcome .rb-chips{margin-top:14px!important}
body.ringbd-welcome .rb-flagbar{margin-top:14px!important}
body.ringbd-welcome .login_innre{min-height:0!important}
body.ringbd-welcome .login_innre:before,body.ringbd-welcome .login_innre:after{-webkit-flex-grow:0!important;flex-grow:0!important;height:0!important;min-height:0!important}
}
/* F3: the fixed bottom cookie banner (212px tall) covered the chips AND the
   username field on first paint at 390px. On welcome pages at <=640px move it
   to a compact top strip (same direction as the X3B >=431px rule above), clear
   of the logo (logo top ~73px after F2) and of every field. Banner still shows
   the same message + Learn More + Got It! button; only its position/size change. */
@media(max-width:640px){
body.ringbd-welcome .cc-window.cc-floating{top:0!important;bottom:auto!important;left:0!important;right:0!important;max-width:none!important;width:auto!important;flex-direction:row!important;align-items:center!important;padding:6px 10px!important;gap:8px!important}
body.ringbd-welcome .cc-window.cc-floating .cc-message{margin:0!important;flex:1;font-size:12px!important;line-height:1.3!important}
body.ringbd-welcome .cc-window.cc-floating .cc-compliance{flex:none!important}
body.ringbd-welcome .cc-window.cc-floating .cc-btn{padding:4px 10px!important;font-size:12px!important}
}

/* === WELCOME-THEME INVESTIGATOR 2026-11-21: mobile first-paint fix ===
   Root cause (measured 390/430px): the hero occupies y~57-494, pushing the
   frosted card's Username (y~671), Password (y~778) and Sign In (y~964)
   to/below the visible fold on a real iPhone (Safari chrome ~750-830px
   visible) - the card looks empty until the user scrolls. Fix: compact
   the hero on small screens so the whole form lands in the first viewport.
   Also: the card's entrance animation (rbrise, fill 'both', starts at
   opacity 0) was observed stuck at opacity 0 / time 0 in a real browser
   engine. Per Dipu 2026-11-21 ~14:01 (premium + HD: animations MORE HD +
   MORE beautiful), the entrance motion is restored as TRANSFORM-ONLY
   (rbrise-safe, no opacity, no fill mode): HD rise motion, zero risk of
   a stuck-invisible card. */
@media (max-width: 930px) {
  body.ringbd-welcome .login_left_combo .logo { margin: 24px 0 0; }
  body.ringbd-welcome .login_left_combo .logo img { max-width: 220px; }
  body.ringbd-welcome .login_left_combo h1 { font-size: 30px !important; margin: 16px 0 0; }
  body.ringbd-welcome .login_left_combo p { font-size: 15px; margin: 8px 0 0; }
  body.ringbd-welcome .rb-chips, body.ringbd-welcome .rb-flagbar { display: none !important; }
  body.ringbd-welcome .login_left_combo_parent { padding: 0 20px; }
  body.ringbd-welcome .login_innre { margin: 16px 16px 24px; animation: rbrise-safe .7s cubic-bezier(.22,1,.36,1); }
}
@keyframes rbrise-safe { from { transform: translateY(20px); } to { transform: none; } }
body.ringbd-welcome .login_innre { animation: rbrise-safe .7s cubic-bezier(.22,1,.36,1); }
/* === SUBAGENT POLISH 2026-11-21 (Dipu: premium + HD, animations MORE beautiful) ===
   Staggered hero entrance + button press feedback.
   TRANSFORM-ONLY (translate3d/scale), GPU-composited, no opacity anywhere:
   nothing can ever be stuck invisible. Layout, fields, buttons, text UNCHANGED. */
@keyframes rb-entrance {
  from { transform: translate3d(0, 16px, 0) scale(.985); }
  to { transform: translate3d(0, 0, 0) scale(1); }
}
body.ringbd-welcome .login_left_combo .logo { animation: rb-entrance .7s cubic-bezier(.22,1,.36,1) both; will-change: transform; }
body.ringbd-welcome .login_left_combo h1 { animation: rb-entrance .7s cubic-bezier(.22,1,.36,1) .06s both; will-change: transform; }
body.ringbd-welcome .login_left_combo p.desc { animation: rb-entrance .7s cubic-bezier(.22,1,.36,1) .12s both; will-change: transform; }
body.ringbd-welcome .login_left_combo .rb-chips { animation: rb-entrance .7s cubic-bezier(.22,1,.36,1) .18s both; will-change: transform; }
body.ringbd-welcome .login_left_combo .rb-flagbar { animation: rb-entrance .7s cubic-bezier(.22,1,.36,1) .24s both; will-change: transform; }
body.ringbd-welcome .login_innre .btn-main:active { transform: translateY(0) scale(.98); }
body.ringbd-welcome .login_innre .rb-social button:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  body.ringbd-welcome .login_left_combo .logo,
  body.ringbd-welcome .login_left_combo h1,
  body.ringbd-welcome .login_left_combo p.desc,
  body.ringbd-welcome .login_left_combo .rb-chips,
  body.ringbd-welcome .login_left_combo .rb-flagbar { animation: none !important; }
}

/* RB H-05 2026-11-29 (live): /welcome at 1280 - the hero subtitle ran to the login card edge
   (max-width 540px at 24px font reaches ~660px of text) and the flagbar rendered as a short
   120px bar floating ~25px below the chips. Desktop-only: cap the subtitle at 460px and
   make the flagbar span the chips row. */
@media(min-width:931px){
body.ringbd-welcome .login_left_combo p{max-width:460px!important;}
body.ringbd-welcome .rb-flagbar{width:100%!important;max-width:520px!important;margin-top:12px!important;}
}
/* RB H-11 2026-11-29 (axe): /welcome subtitle 4.1:1 -> white (4.53:1 on the blue hero); footer links 2.64:1 + 1.32:1 vs text -> white + underline (underline satisfies link-in-text-block); Made in Bangladesh chip 3.67:1 -> solid dark pill. */
body.ringbd-welcome .login_left_combo p,body.ringbd-welcome .login_left_combo p b{color:#fff!important;}
body.ringbd-welcome .welcome-footer{color:#fff!important;}
body.ringbd-welcome .welcome-footer a{color:#fff!important;text-decoration:underline!important;}
body.ringbd-welcome .rb-chip{background:#16213a!important;}
