
/* V120 auth refinement patch */
:root{
  --bgsm-auth-card-radius: 1.6rem;
  --bgsm-auth-soft-border: rgba(148,163,184,.22);
  --bgsm-auth-shadow: 0 26px 68px rgba(15,23,42,.14);
  --bgsm-auth-muted: #667085;
  --bgsm-auth-title: #0f172a;
  --bgsm-auth-surface: rgba(255,255,255,.96);
  --bgsm-auth-primary: linear-gradient(135deg,#0f172a 0%,#1d4ed8 100%);
}
.auth-shell,
.business-auth-shell,
.delivery-auth-shell{
  padding-top: clamp(1rem, 2vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
}
.customer-auth-card,
.business-auth-card,
.bgsm-tabler-auth-card{
  border-radius: var(--bgsm-auth-card-radius) !important;
  overflow: hidden;
  border: 1px solid var(--bgsm-auth-soft-border) !important;
  background: var(--bgsm-auth-surface) !important;
  box-shadow: var(--bgsm-auth-shadow) !important;
}
.customer-auth-form-wrap,
.business-auth-form,
.bgsm-tabler-auth-main,
.auth-form-wrap{
  padding: clamp(1.15rem, 2.5vw, 2rem) !important;
}
.auth-form-wrap .form-label,
.business-auth-form .form-label,
.customer-login-form .form-label,
.bgsm-tabler-form .form-label{
  display:block !important;
  width:100% !important;
  margin:0 0 .48rem !important;
  font-size:.95rem !important;
  font-weight:700 !important;
  line-height:1.4 !important;
  color:#1e293b !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
}
.auth-form-wrap .form-control,
.auth-form-wrap .form-select,
.auth-form-wrap textarea,
.business-auth-form .form-control,
.business-auth-form .form-select,
.business-auth-form textarea,
.customer-login-form .form-control,
.bgsm-tabler-form .form-control,
.bgsm-tabler-form .form-select,
.bgsm-tabler-form textarea{
  min-height: 3.35rem;
  border-radius: 1rem !important;
  border: 1px solid rgba(203,213,225,.95) !important;
  box-shadow: none !important;
  padding: .92rem 1rem !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}
.bgsm-tabler-form textarea{min-height:6rem}
.auth-form-wrap .form-control:focus,
.auth-form-wrap .form-select:focus,
.business-auth-form .form-control:focus,
.business-auth-form .form-select:focus,
.customer-login-form .form-control:focus,
.bgsm-tabler-form .form-control:focus,
.bgsm-tabler-form .form-select:focus,
.bgsm-tabler-form textarea:focus{
  border-color: rgba(37,99,235,.55) !important;
  box-shadow: 0 0 0 .24rem rgba(37,99,235,.12) !important;
}
.customer-auth-inline-note,
.business-auth-note-soft,
.delivery-auth-note-soft{
  display:flex;
  align-items:flex-start;
  gap:.75rem;
  padding: .95rem 1rem;
  border-radius: 1rem;
  background:#f8fafc;
  border:1px solid rgba(226,232,240,.95);
  color:#475569;
  font-size:.95rem;
  line-height:1.55;
}
.customer-auth-inline-note i,
.business-auth-note-soft i,
.delivery-auth-note-soft i{margin-top:.1rem;color:#0f766e}
.btn-auth-primary,
.business-auth-submit,
.bgsm-tabler-primary-btn{
  min-height: 3.45rem;
  border:0 !important;
  border-radius: 1rem !important;
  background: var(--bgsm-auth-primary) !important;
  box-shadow: 0 16px 34px rgba(29,78,216,.22);
  font-weight: 700 !important;
  letter-spacing:.01em;
}
.auth-meta a,
.auth-linkbar a,
.business-auth-links-inline a,
.business-auth-helper a{font-weight:600;text-decoration:none}
.auth-linkbar,
.business-auth-links-inline,
.auth-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem 1rem;
}
.auth-linkbar{justify-content:flex-start}
.auth-meta{justify-content:center}
.business-auth-header,
.delivery-auth-header{
  display:flex;
  flex-direction:column;
  gap:.9rem;
  margin-bottom:1.2rem;
}
.business-auth-brand-title,
.delivery-auth-brand-title,
.customer-auth-brand-title{
  display:flex;
  align-items:center;
  gap:.85rem;
}
.business-auth-brand-badge,
.delivery-auth-brand-badge,
.customer-auth-brand-badge{
  width:3rem;height:3rem;border-radius:1rem;display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#0f172a,#1d4ed8); color:#fff; box-shadow:0 12px 24px rgba(29,78,216,.2);
  flex:0 0 auto;
}
.business-auth-brand-title h1,
.delivery-auth-brand-title h1,
.customer-auth-brand-title h1{margin:0;font-size:1.1rem;font-weight:800;letter-spacing:.08em;color:#1d4ed8;text-transform:uppercase}
.business-auth-brand-title p,
.delivery-auth-brand-title p,
.customer-auth-brand-title p{margin:0;color:var(--bgsm-auth-muted);font-size:.9rem}
.business-auth-nav-row,
.delivery-auth-nav-row{
  display:flex;flex-wrap:wrap;gap:.65rem;
}
.business-auth-nav-row .btn,
.delivery-auth-nav-row .btn{
  border-radius:999px !important;
  padding:.65rem 1rem !important;
  font-weight:600;
}
.business-auth-hero,
.delivery-auth-hero{
  margin-bottom:1rem;
}
.business-auth-title,
.delivery-auth-title,
.customer-auth-form-wrap h2,
.business-auth-hero h2,
.delivery-auth-hero h2{
  color:var(--bgsm-auth-title);
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  line-height:1.14;
}
.business-auth-lead,
.delivery-auth-lead,
.auth-lead{color:var(--bgsm-auth-muted);font-size:1rem;line-height:1.65}
.business-auth-helper{display:flex;justify-content:flex-start;margin:0 0 .2rem}
.business-auth-section-card,
.delivery-auth-section-card{
  padding: 1rem;
  border-radius: 1.15rem;
  border:1px solid rgba(226,232,240,.95);
  background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  margin-bottom: .2rem;
}
.business-auth-section-card h3,
.delivery-auth-section-card h3{font-size:1.35rem;line-height:1.25;margin:0 0 1rem;color:#0f172a}
.auth-brand img,
.business-auth-brand img,
.delivery-auth-brand img{width:42px;height:42px;object-fit:contain;border-radius:12px}
.auth-brand.logo-missing,
.business-auth-brand.logo-missing,
.delivery-auth-brand.logo-missing{padding-left:0}
.auth-brand.logo-missing img,
.business-auth-brand.logo-missing img,
.delivery-auth-brand.logo-missing img{display:none !important}
.business-auth-brand,
.delivery-auth-brand,
.auth-brand{
  display:flex;align-items:center;gap:.8rem;font-weight:800;color:#0f172a;
}
.business-auth-brand span,
.delivery-auth-brand span,
.auth-brand span{display:inline-flex;flex-direction:column;line-height:1.05}
.business-auth-brand .brand-main,
.delivery-auth-brand .brand-main,
.auth-brand .brand-main{font-size:1rem;text-transform:uppercase;letter-spacing:.08em}
.business-auth-brand .brand-sub,
.delivery-auth-brand .brand-sub,
.auth-brand .brand-sub{font-size:.86rem;color:#64748b;text-transform:uppercase;letter-spacing:.12em}
.business-auth-side,
.auth-side.bgsm-tabler-auth-aside{padding:clamp(1.25rem, 3vw, 2rem)}
@media (max-width: 991.98px){
  .business-auth-shell .col-xl-11,
  .auth-shell .col-xl-10,
  .delivery-auth-shell .col-xl-10{max-width: 760px}
  .business-auth-form,
  .bgsm-tabler-auth-main,
  .customer-auth-form-wrap{padding:1.1rem !important}
}
@media (max-width: 575.98px){
  .auth-shell,
  .business-auth-shell,
  .delivery-auth-shell{padding-top:.65rem;padding-bottom:1.2rem}
  .customer-auth-card,
  .business-auth-card,
  .bgsm-tabler-auth-card{border-radius:1.2rem !important}
  .business-auth-nav-row .btn,
  .delivery-auth-nav-row .btn{width:auto;max-width:100%}
  .auth-linkbar,
  .business-auth-links-inline,
  .auth-meta{flex-direction:column;align-items:flex-start}
  .auth-meta{text-align:left !important}
  .customer-auth-inline-note,
  .business-auth-note-soft,
  .delivery-auth-note-soft{padding:.85rem .92rem;font-size:.92rem}
  .auth-form-wrap .form-control,
  .auth-form-wrap .form-select,
  .business-auth-form .form-control,
  .business-auth-form .form-select,
  .customer-login-form .form-control,
  .bgsm-tabler-form .form-control,
  .bgsm-tabler-form .form-select,
  .bgsm-tabler-form textarea{min-height:3.15rem;font-size:.98rem !important}
}


/* V122 premium auth visual upgrade */
body.bgsm-business-ui,
body.bgsm-delivery-ui,
body.business-portal-page{
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.14), transparent 28%),
    radial-gradient(circle at top right, rgba(139,92,246,.13), transparent 32%),
    linear-gradient(180deg, #f3f7ff 0%, #eef4ff 42%, #f8fbff 100%) !important;
}
.business-auth-shell .container,
.delivery-auth-shell .container,
.auth-shell .container{position:relative;z-index:1}
.business-auth-card,
.bgsm-tabler-auth-card,
.auth-card{
  position:relative;
  backdrop-filter: blur(14px);
}
.business-auth-card::before,
.bgsm-tabler-auth-card::before,
.auth-card::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.94));
  pointer-events:none;
}
.business-auth-card > .row,
.bgsm-tabler-auth-card > .row,
.auth-card > .row{position:relative;z-index:1}
.business-auth-side,
.auth-side.bgsm-tabler-auth-aside{
  background:
    radial-gradient(circle at top, rgba(96,165,250,.35), transparent 34%),
    linear-gradient(160deg, #081226 0%, #102449 44%, #1d4ed8 100%) !important;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.business-auth-side::before,
.auth-side.bgsm-tabler-auth-aside::before{
  content:"";
  position:absolute;
  width:18rem;height:18rem;
  top:-6rem;right:-6rem;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0));
}
.business-auth-side::after,
.auth-side.bgsm-tabler-auth-aside::after{
  content:"";
  position:absolute;
  width:10rem;height:10rem;
  left:-2rem;bottom:-2rem;
  border-radius:2.5rem;
  transform:rotate(18deg);
  background:linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.02));
}
.business-auth-side > *,
.auth-side.bgsm-tabler-auth-aside > *{position:relative;z-index:1}
.business-auth-side h1,
.auth-side.bgsm-tabler-auth-aside h1{font-size:clamp(2rem, 4vw, 3.2rem);line-height:1.02;margin:0 0 1rem;font-weight:850;letter-spacing:-.04em}
.business-auth-side p,
.auth-side.bgsm-tabler-auth-aside p{font-size:1.02rem;line-height:1.75;color:rgba(255,255,255,.82)}
.business-auth-pill,
.auth-pill{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:.72rem 1rem;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;font-weight:700;backdrop-filter: blur(8px);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}
.auth-badge-grid,
.business-auth-badge-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.9rem;
  margin-top:1.35rem;
}
.mini-stat,
.business-mini-stat{
  padding:1rem 1rem 1.02rem;
  border-radius:1.25rem;
  background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 28px rgba(2,6,23,.16), inset 0 1px 0 rgba(255,255,255,.16);
  transform:translateY(0);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation:bgsmFloatCard 5.2s ease-in-out infinite;
}
.mini-stat:nth-child(2), .business-mini-stat:nth-child(2){animation-delay:.45s}
.mini-stat:nth-child(3), .business-mini-stat:nth-child(3){animation-delay:.9s}
.mini-stat:nth-child(4), .business-mini-stat:nth-child(4){animation-delay:1.35s}
.mini-stat:hover,
.business-mini-stat:hover{transform:translateY(-4px);box-shadow:0 22px 32px rgba(2,6,23,.2), inset 0 1px 0 rgba(255,255,255,.2)}
.business-auth-brand-title h1,
.delivery-auth-brand-title h1,
.customer-auth-brand-title h1{
  background:linear-gradient(90deg,#0f172a 0%,#1d4ed8 55%,#7c3aed 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent !important;
  letter-spacing:.03em;
}
.business-auth-title,
.delivery-auth-title,
.customer-auth-form-wrap h2,
.business-auth-hero h2,
.delivery-auth-hero h2{
  font-weight:850;
  letter-spacing:-.04em;
}
.business-auth-form,
.bgsm-tabler-auth-main,
.auth-form-wrap{
  background:linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,252,.95));
}
.business-auth-header,
.delivery-auth-header{
  padding:1rem 1rem 1.1rem;
  margin:-.25rem -.25rem 1.3rem;
  border-radius:1.3rem;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(242,247,255,.92));
  border:1px solid rgba(191,219,254,.65);
  box-shadow:0 16px 34px rgba(15,23,42,.08);
}
.business-auth-nav-row .btn,
.delivery-auth-nav-row .btn{
  border:1px solid rgba(148,163,184,.35) !important;
  background:linear-gradient(180deg, #ffffff, #eff6ff) !important;
  color:#0f172a !important;
  box-shadow:0 8px 18px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.8);
  transform:translateY(0);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.business-auth-nav-row .btn:hover,
.delivery-auth-nav-row .btn:hover{transform:translateY(-2px);box-shadow:0 14px 24px rgba(37,99,235,.16);border-color:rgba(37,99,235,.35)!important}
.business-auth-section-card,
.delivery-auth-section-card{
  border:1px solid rgba(191,219,254,.78);
  box-shadow:0 18px 32px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.75);
  position:relative; overflow:hidden;
}
.business-auth-section-card::before,
.delivery-auth-section-card::before{
  content:""; position:absolute; inset:0 auto auto 0; width:100%; height:4px;
  background:linear-gradient(90deg, #1d4ed8, #7c3aed, #06b6d4);
}
.business-auth-section-card h3,
.delivery-auth-section-card h3{font-weight:800;letter-spacing:-.03em}
.business-auth-submit,
.bgsm-tabler-primary-btn,
.btn-auth-primary{
  position:relative; overflow:hidden;
}
.business-auth-submit::after,
.bgsm-tabler-primary-btn::after,
.btn-auth-primary::after{
  content:""; position:absolute; top:0; bottom:0; left:-35%; width:30%;
  transform:skewX(-22deg);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent);
  animation:bgsmShine 4.2s linear infinite;
}
.business-auth-links-inline,
.auth-meta{margin-top:.15rem}
.business-auth-side .btn,
.auth-side .btn{
  border:0 !important;
  background:linear-gradient(180deg,#fff,#dbeafe) !important;
  color:#0f172a !important;
  box-shadow:0 14px 26px rgba(2,6,23,.16);
}
@keyframes bgsmFloatCard{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes bgsmShine{0%{left:-38%}100%{left:120%}}
@media (max-width: 991.98px){
  .business-auth-card,.bgsm-tabler-auth-card,.auth-card{box-shadow:0 18px 42px rgba(15,23,42,.1)!important}
}
@media (max-width: 767.98px){
  .business-auth-header,.delivery-auth-header{padding:.95rem;margin:0 0 1rem}
  .auth-badge-grid,.business-auth-badge-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 575.98px){
  .business-auth-header,.delivery-auth-header{border-radius:1.05rem}
  .auth-badge-grid,.business-auth-badge-grid{grid-template-columns:1fr}
  .business-auth-nav-row .btn,.delivery-auth-nav-row .btn{width:100%}
}

