/* Pasar UMKM Cisauk V14 — Bootstrap 5 theme and responsive fixes */
:root{
  --umkm-purple:#6f176f;
  --umkm-purple-dark:#351039;
  --umkm-green:#14864b;
  --umkm-green-dark:#0d6738;
  --umkm-gold:#d5a300;
  --umkm-ink:#2e2331;
  --umkm-muted:#6d6270;
  --umkm-soft:#f7f4f8;
  --umkm-border:#e7dfe8;
}

html{font-size:16px}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--umkm-ink);text-rendering:optimizeLegibility}
a{text-underline-offset:.2em}

/* Bootstrap theme */
.btn{--bs-btn-font-weight:600}
.btn-success{--bs-btn-bg:var(--umkm-green);--bs-btn-border-color:var(--umkm-green);--bs-btn-hover-bg:var(--umkm-green-dark);--bs-btn-hover-border-color:var(--umkm-green-dark)}
.form-control,.form-select{min-height:46px;border-color:#d9d0db;border-radius:.75rem;color:var(--umkm-ink)}
textarea.form-control{min-height:112px;resize:vertical}
.form-control:focus,.form-select:focus{border-color:#9a5a99;box-shadow:0 0 0 .22rem rgba(111,23,111,.12)}
.form-label{margin-bottom:.45rem;color:#433746;font-weight:600}
.invalid-feedback{font-size:.82rem}

/* Popup */
.promo-bootstrap-modal{--bs-modal-zindex:1090}
.promo-bootstrap-modal .modal-backdrop{--bs-backdrop-opacity:.72}
.promo-bootstrap-dialog{width:min(820px,calc(100% - 1.5rem));max-width:820px;margin:1rem auto}
.promo-bootstrap-card{position:relative;overflow:hidden;border-radius:1.5rem;box-shadow:0 2rem 5rem rgba(22,8,27,.35)}
.promo-bootstrap-close{position:absolute;z-index:5;top:.85rem;right:.85rem;width:2rem;height:2rem;padding:.55rem;border-radius:50%;background-color:rgba(255,255,255,.92);box-shadow:0 .4rem 1.2rem rgba(20,8,24,.16);opacity:1}
.promo-bootstrap-visual{position:relative;min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;text-align:center;color:#fff;background:linear-gradient(145deg,var(--promo-from,#75156d),var(--promo-to,#13894f));overflow:hidden}
.promo-bootstrap-visual::before,.promo-bootstrap-visual::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}
.promo-bootstrap-visual::before{width:250px;height:250px;top:-135px;left:-125px}
.promo-bootstrap-visual::after{width:230px;height:230px;right:-130px;bottom:-120px}
.promo-bootstrap-visual--image{padding:0}
.promo-bootstrap-visual--image::before,.promo-bootstrap-visual--image::after{display:none}
.promo-bootstrap-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.promo-bootstrap-image-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(28,7,32,.08),rgba(28,7,32,.55))}
.promo-bootstrap-mark{position:relative;z-index:2;width:76px;height:76px;display:grid;place-items:center;margin-bottom:1rem;border:1px solid rgba(255,255,255,.35);border-radius:1.25rem;background:rgba(255,255,255,.12)}
.promo-bootstrap-mark svg{width:48px;height:48px}
.promo-bootstrap-brand,.promo-bootstrap-tagline{position:relative;z-index:2}
.promo-bootstrap-brand{font-size:1.35rem;font-weight:650;line-height:1.25}
.promo-bootstrap-tagline{font-size:.9rem;color:rgba(255,255,255,.86)}
.promo-bootstrap-body{display:flex;min-height:440px;flex-direction:column;justify-content:center;padding:2.3rem 2.5rem}
.promo-bootstrap-eyebrow{color:var(--promo-from,#75156d);font-size:.78rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.promo-bootstrap-title{max-width:16ch;color:var(--umkm-purple-dark);font-size:clamp(1.75rem,3vw,2.35rem);font-weight:700;line-height:1.12;letter-spacing:-.025em;overflow-wrap:anywhere}
.promo-bootstrap-description{max-width:48ch;color:var(--umkm-muted);font-size:1rem;line-height:1.65;font-weight:400}
.promo-bootstrap-features{display:grid;gap:.55rem}
.promo-bootstrap-features li{display:flex;align-items:flex-start;gap:.65rem;color:#514554;font-size:.92rem;line-height:1.45;font-weight:400}
.promo-bootstrap-check{flex:0 0 1.35rem;height:1.35rem;display:grid;place-items:center;margin-top:.05rem;border-radius:50%;background:#e6f5ec;color:var(--umkm-green);font-size:.78rem;font-weight:700}
.promo-bootstrap-primary{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:48px;border:0;border-radius:.8rem;background:linear-gradient(135deg,var(--promo-from,#75156d),var(--promo-to,#13894f));color:#fff;font-weight:650}
.promo-bootstrap-primary:hover,.promo-bootstrap-primary:focus{color:#fff;filter:brightness(.96)}
.promo-bootstrap-later{min-height:48px;border:1px solid var(--umkm-border);border-radius:.8rem;color:#514554;background:#fff;font-weight:500}
.promo-bootstrap-dismiss{align-self:flex-start;color:#756978;text-decoration:none;font-size:.82rem;font-weight:400}
.promo-bootstrap-dismiss:hover{color:var(--umkm-purple);text-decoration:underline}

@media (max-width:991.98px){
  .promo-bootstrap-dialog{max-width:620px}
  .promo-bootstrap-visual{min-height:150px;padding:1.2rem}
  .promo-bootstrap-mark{width:58px;height:58px;margin-bottom:.55rem;border-radius:1rem}
  .promo-bootstrap-mark svg{width:36px;height:36px}
  .promo-bootstrap-brand{font-size:1.1rem}
  .promo-bootstrap-tagline{font-size:.8rem}
  .promo-bootstrap-body{min-height:auto;padding:1.8rem 2rem 1.5rem}
  .promo-bootstrap-title{max-width:none;font-size:1.9rem}
}
@media (max-width:575.98px){
  .promo-bootstrap-dialog{width:calc(100% - 1rem);margin:.5rem auto}
  .promo-bootstrap-card{max-height:calc(100dvh - 1rem);overflow:auto;border-radius:1.15rem}
  .promo-bootstrap-visual{min-height:112px}
  .promo-bootstrap-mark{width:48px;height:48px;margin-bottom:.35rem}
  .promo-bootstrap-mark svg{width:30px;height:30px}
  .promo-bootstrap-brand{font-size:1rem}
  .promo-bootstrap-tagline{display:none}
  .promo-bootstrap-body{padding:1.35rem 1.2rem 1.2rem}
  .promo-bootstrap-eyebrow{font-size:.7rem}
  .promo-bootstrap-title{font-size:1.55rem;line-height:1.18}
  .promo-bootstrap-description{font-size:.92rem;line-height:1.55}
  .promo-bootstrap-features{gap:.42rem;margin-bottom:1rem!important}
  .promo-bootstrap-features li{font-size:.86rem}
  .promo-bootstrap-close{top:.6rem;right:.6rem}
}
@media (max-height:620px) and (min-width:992px){
  .promo-bootstrap-visual,.promo-bootstrap-body{min-height:380px}
  .promo-bootstrap-body{padding-top:1.6rem;padding-bottom:1.6rem}
}

/* Auth pages */
.auth-v14-body{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(180deg,#f8f5f9 0%,#f1edf3 100%)}
.auth-v14-header{position:relative;z-index:5}
.auth-v14-brand{text-decoration:none}
.auth-v14-divider{width:1px;height:38px;background:#ded5df}
.auth-v14-main{flex:1;display:flex;align-items:center}
.auth-v14-footer{color:#746a77;background:#fff;border-top:1px solid var(--umkm-border)}
.auth-v14-card{max-width:1050px;border-radius:1.4rem!important}
.auth-v14-visual,.registration-v14-aside{color:#fff;background:linear-gradient(145deg,var(--umkm-purple-dark),var(--umkm-purple) 55%,var(--umkm-green))}
.auth-v14-kicker{display:inline-flex;padding:.42rem .7rem;border:1px solid rgba(255,255,255,.28);border-radius:999px;color:rgba(255,255,255,.92);font-size:.75rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase}
.auth-v14-hero-title{font-size:clamp(2rem,4vw,3rem);font-weight:700;line-height:1.08;letter-spacing:-.03em}
.auth-v14-hero-copy,.registration-v14-copy{color:rgba(255,255,255,.82);font-size:1rem;line-height:1.65;font-weight:400}
.auth-v14-info-list{display:grid;gap:.8rem}
.auth-v14-info-item{display:flex;align-items:flex-start;gap:.7rem;color:rgba(255,255,255,.9);font-size:.92rem;line-height:1.5;font-weight:400}
.auth-v14-info-icon{flex:0 0 1.5rem;height:1.5rem;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.14);font-size:.8rem}
.auth-v14-form-wrap{max-width:520px}
.auth-v14-small-label{color:var(--umkm-green);font-size:.8rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.auth-v14-form-title{color:var(--umkm-purple-dark);font-size:clamp(1.8rem,3vw,2.35rem);font-weight:700;line-height:1.15;letter-spacing:-.02em}
.auth-v14-primary{border:0;background:linear-gradient(135deg,var(--umkm-purple),var(--umkm-green));color:#fff;font-weight:650}
.auth-v14-primary:hover,.auth-v14-primary:focus{color:#fff;filter:brightness(.95)}
.password-toggle-v14{min-width:74px;font-size:.88rem}
.auth-v14-separator{position:relative;text-align:center;color:#807482;font-size:.82rem}
.auth-v14-separator::before{content:"";position:absolute;top:50%;left:0;right:0;border-top:1px solid var(--umkm-border)}
.auth-v14-separator span{position:relative;padding:0 .8rem;background:#fff}

/* Registration */
.registration-v14-card{max-width:1320px;border-radius:1.4rem!important}
.registration-v14-aside{position:relative;overflow:hidden}
.registration-v14-aside::before{content:"";position:absolute;width:300px;height:300px;right:-180px;bottom:-150px;border-radius:50%;background:rgba(255,255,255,.08)}
.registration-v14-title{position:relative;font-size:clamp(2rem,3.5vw,3.1rem);font-weight:700;line-height:1.08;letter-spacing:-.03em}
.registration-v14-copy{position:relative}
.registration-v14-steps{position:relative;display:grid;gap:1rem}
.registration-v14-step{display:flex;align-items:flex-start;gap:.8rem}
.registration-v14-step>span{flex:0 0 2rem;height:2rem;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.14);font-size:.82rem;font-weight:650}
.registration-v14-step p{margin:0 0 .12rem;font-weight:600}
.registration-v14-step small{display:block;color:rgba(255,255,255,.75);font-size:.82rem;line-height:1.45}
.registration-v14-form-wrap{max-width:900px;margin:0 auto}
.registration-v14-section{padding:1.25rem;border:1px solid var(--umkm-border);border-radius:1rem;background:#fff}
.registration-v14-section-title{display:flex;align-items:center;gap:.65rem;margin-bottom:1rem}
.registration-v14-section-title>span{flex:0 0 1.8rem;height:1.8rem;display:grid;place-items:center;border-radius:50%;background:#efe4f0;color:var(--umkm-purple);font-size:.78rem;font-weight:650}
.registration-v14-section-title h3{margin:0;color:#433146;font-size:1rem;font-weight:650}
.registration-v14-agreement{padding:1rem 1rem 1rem 2.7rem;border:1px solid var(--umkm-border);border-radius:.85rem;background:var(--umkm-soft)}
.registration-v14-agreement .form-check-input{margin-left:-1.7rem}

@media (max-width:1199.98px){
  .registration-v14-aside{padding-bottom:2rem!important}
  .registration-v14-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767.98px){
  .auth-v14-header img:last-child{width:108px;height:auto}
  .auth-v14-card,.registration-v14-card{border-radius:1rem!important}
  .auth-v14-visual{padding:1.75rem!important}
  .auth-v14-hero-title{font-size:2rem}
  .registration-v14-aside{padding:1.75rem!important}
  .registration-v14-title{font-size:2rem}
  .registration-v14-steps{grid-template-columns:1fr}
  .registration-v14-section{padding:1rem}
}
@media (max-width:480px){
  .auth-v14-header .btn{font-size:0;width:40px;height:40px;padding:0;display:grid;place-items:center}
  .auth-v14-header .btn span{font-size:1rem}
  .auth-v14-brand img:first-child{width:34px;height:auto}
  .auth-v14-brand img:last-child{width:96px;height:auto}
  .auth-v14-divider{height:32px}
}

/* Dashboard compatibility fixes with Bootstrap */
.dashboard-body{background:#f5f2f6}
.dashboard-header,.dashboard-topbar{z-index:1020}
.dashboard-sidebar{z-index:1040}
.dashboard-backdrop{z-index:1030}
.dashboard-content .form-control,.dashboard-content .form-select,.dashboard-content input,.dashboard-content select,.dashboard-content textarea{max-width:100%}
.dashboard-content table{vertical-align:middle}
.dashboard-card,.dashboard-panel,.dashboard-form,.responsive-table{border-radius:1rem!important}
@media (max-width:991.98px){
  .dashboard-content{padding:1rem!important}
}

/* Mobile auth compaction: form appears sooner without text collisions */
@media (max-width:767.98px){
  .auth-v14-main{align-items:flex-start}
  .auth-v14-info-list{display:none}
  .auth-v14-visual{padding:1.45rem!important}
  .auth-v14-hero-title{font-size:1.8rem;line-height:1.12;margin-bottom:.75rem!important}
  .auth-v14-hero-copy{font-size:.92rem;line-height:1.55}
  .registration-v14-aside{padding:1.45rem!important}
  .registration-v14-title{font-size:1.8rem;line-height:1.12;margin-bottom:.75rem!important}
  .registration-v14-copy{font-size:.92rem;line-height:1.55;margin-bottom:0!important}
  .registration-v14-steps{display:none}
}
