/* v71 auth fixes: stop wrapped labels / broken field layout on auth forms */
.auth-shell form.row.g-3 > [class*="col-"],
.auth-shell .row.g-3.auth-form-grid > [class*="col-"],
.auth-shell .auth-form-wrap form > [class*="col-"],
.auth-shell .auth-form-wrap .row.g-3 > [class*="col-"]{
  display:block !important;
  width:100%;
}
.auth-shell .form-label,
.auth-shell .form-text,
.auth-shell .auth-linkbar,
.auth-shell .auth-meta,
.auth-shell .btn,
.auth-shell .btn-auth-primary{
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.auth-shell .form-label{
  display:block;
  width:100%;
}
.auth-shell .input-help{
  display:block;
  font-size:.84rem;
  line-height:1.45;
  color:#64748b;
  margin-top:.38rem;
}
.auth-shell .auth-linkbar.auth-linkbar-buttons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.75rem;
}
.auth-shell .auth-linkbar.auth-linkbar-buttons a{
  justify-content:center;
  min-height:48px;
  padding:.85rem .95rem;
  border:1px solid rgba(148,163,184,.24);
  border-radius:16px;
  background:#fff;
  color:#0f172a;
  font-weight:700;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.auth-shell .auth-linkbar.auth-linkbar-buttons a:hover{
  transform:translateY(-1px);
  background:#eff6ff;
  border-color:rgba(37,99,235,.24);
  color:#1d4ed8;
  box-shadow:0 16px 30px rgba(29,78,216,.10);
}
.auth-shell .auth-linkbar.auth-linkbar-buttons a i{
  color:#1d4ed8;
  font-size:1rem;
}
.auth-shell .auth-action-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.8rem;
}
.auth-shell .auth-action-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  min-height:52px;
  padding:.9rem 1rem;
  text-decoration:none;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border:1px solid rgba(148,163,184,.24);
  color:#0f172a;
  font-weight:700;
  box-shadow:0 12px 26px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.85);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, background-color .18s ease;
}
.auth-shell .auth-action-btn:hover{
  transform:translateY(-2px);
  color:#1d4ed8;
  border-color:rgba(37,99,235,.28);
  box-shadow:0 18px 34px rgba(29,78,216,.11), inset 0 1px 0 rgba(255,255,255,.9);
}
.auth-shell .auth-action-btn i{color:#1d4ed8}
.business-auth-shell .business-action-btn,
.business-auth-shell .business-plan-card,
.business-auth-shell .business-auth-quick a{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.business-auth-shell .business-action-btn:hover,
.business-auth-shell .business-plan-card:hover,
.business-auth-shell .business-auth-quick a:hover{
  transform:translateY(-2px);
}
.business-auth-shell .business-action-btn{
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
  box-shadow:0 12px 28px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.88);
}
.business-auth-shell .business-auth-note{line-height:1.55}
.delivery-auth-shell .auth-linkbar.auth-linkbar-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:767.98px){
  .auth-shell .auth-linkbar.auth-linkbar-buttons,
  .auth-shell .auth-action-grid,
  .business-auth-shell .business-action-grid{
    grid-template-columns:1fr;
  }
  .auth-shell .auth-linkbar.auth-linkbar-buttons a,
  .auth-shell .auth-action-btn,
  .business-auth-shell .business-action-btn{
    min-height:50px;
    border-radius:15px;
  }
}
@media (max-width:414px){
  .auth-shell .auth-form-wrap{padding:.95rem !important}
  .auth-shell .form-control,
  .auth-shell .form-select,
  .auth-shell textarea{min-height:50px;font-size:16px}
}


/* v71b: extra hardening for squeezed auth labels/fields */
.auth-shell .auth-form-wrap,
.auth-shell form,
.auth-shell .row,
.auth-shell [class*="col-"]{min-width:0}
.auth-shell .form-label{max-width:100%;line-height:1.35;white-space:normal!important;word-break:keep-all;overflow-wrap:break-word}
.auth-shell input.form-control,
.auth-shell select.form-select,
.auth-shell textarea.form-control{width:100%;max-width:100%}
@media (max-width: 991.98px){
  .auth-shell .col-lg-7,
  .auth-shell .col-lg-6,
  .auth-shell .col-md-6,
  .auth-shell .col-md-4{width:100%!important;flex:0 0 100%!important}
}

/* Make dashboard/page hero cards move with scroll in a professional sticky way */
@media (min-width: 992px){
  .admin-hero-card,
  .portal-hero-card,
  .reseller-hero-card,
  .business-dashboard-hero{
    position:sticky;
    top:88px;
    z-index:5;
  }
}
@media (max-width: 991.98px){
  .admin-hero-card,
  .portal-hero-card,
  .reseller-hero-card,
  .business-dashboard-hero{
    position:sticky;
    top:76px;
    z-index:5;
  }
}
