/* ============================================================
   OneCAT Proposal Builder — LOGIN V1.3
   Corrected for LIVE V2 template:
   .oc2-background / .oc2-panel / .oc2-card
   ============================================================ */

:root{
  --oc2-login-blue:#4d73ff;
  --oc2-login-blue-2:#3155de;
  --oc2-login-navy:#111a33;
  --oc2-login-navy-2:#0a1226;
  --oc2-login-text:#f7f9ff;
  --oc2-login-muted:#c7d2e4;
}

/* ------------------ REAL LIVE BACKGROUND ------------------ */
html,body{
  min-height:100%;
}

body.oc2-page{
  margin:0 !important;
  min-height:100vh !important;
  background:#081327 !important;
}

.oc2-shell{
  position:relative !important;
  min-height:100vh !important;
  background:transparent !important;
}

/* THIS is the actual live background element */
html body.oc2-page .oc2-background{
  position:fixed !important;
  inset:0 !important;
  z-index:0 !important;
  opacity:1 !important;
  background-image:var(--oc2-dynamic-login-bg) !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  transform:scale(1.004) !important;
  transition:opacity .7s ease !important;
}

/* Keep contrast similar to EstateOS, but don't wash out the image */
html body.oc2-page .oc2-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:1 !important;
  pointer-events:none !important;
  background:
    linear-gradient(90deg,rgba(4,10,24,.08) 0%,rgba(4,10,24,.03) 52%,rgba(4,10,24,.26) 100%),
    linear-gradient(180deg,rgba(2,8,20,.02),rgba(2,8,20,.13)) !important;
}

/* ------------------ REAL LIVE LOGIN PANEL ------------------ */
html body.oc2-page .oc2-panel{
  position:relative !important;
  z-index:4 !important;
  color:var(--oc2-login-text) !important;
  background:
    linear-gradient(180deg,rgba(18,29,56,.93),rgba(9,18,39,.90)) !important;
  border:1px solid rgba(255,255,255,.20) !important;
  border-radius:30px !important;
  box-shadow:0 28px 80px rgba(0,0,0,.32) !important;
  backdrop-filter:blur(22px) saturate(120%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(120%) !important;
}

/* Brand area: preserve gray-cat logo image itself */
html body.oc2-page .oc2-brand{
  background:transparent !important;
}

html body.oc2-page .oc2-brand img{
  background:transparent !important;
}

html body.oc2-page .oc2-brand-copy strong{
  color:#ffffff !important;
}

html body.oc2-page .oc2-brand-copy strong span{
  color:#6f8cff !important;
}

html body.oc2-page .oc2-brand-copy small{
  color:#c8d3e8 !important;
}

/* Inner EstateOS-like card */
html body.oc2-page .oc2-card{
  background:rgba(255,255,255,.075) !important;
  border:1px solid rgba(255,255,255,.15) !important;
  border-radius:24px !important;
  box-shadow:none !important;
  color:#ffffff !important;
}

html body.oc2-page .oc2-card-head h1,
html body.oc2-page .oc2-field label,
html body.oc2-page .oc2-account-copy strong{
  color:#ffffff !important;
}

html body.oc2-page .oc2-card-head p,
html body.oc2-page .oc2-account-copy span{
  color:#c9d5e7 !important;
}

/* Remembered account */
html body.oc2-page .oc2-account{
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:none !important;
}

html body.oc2-page .oc2-change,
html body.oc2-page .oc2-link,
html body.oc2-page .oc2-text-button{
  color:#86a9ff !important;
}

/* Inputs stay clean white like EstateOS */
html body.oc2-page .oc2-field input{
  background:rgba(255,255,255,.97) !important;
  color:#0d1830 !important;
  border:1px solid rgba(255,255,255,.25) !important;
  border-radius:13px !important;
  box-shadow:none !important;
}

html body.oc2-page .oc2-field input:focus{
  border-color:#6c8dff !important;
  box-shadow:0 0 0 3px rgba(77,115,255,.18) !important;
  outline:none !important;
}

html body.oc2-page .oc2-show-password{
  color:#526078 !important;
}

/* Controls */
html body.oc2-page .oc2-row,
html body.oc2-page .oc2-remember{
  color:#dce5f4 !important;
}

html body.oc2-page .oc2-remember input{
  accent-color:#5b79ff !important;
}

html body.oc2-page .oc2-primary{
  color:#ffffff !important;
  background:linear-gradient(135deg,var(--oc2-login-blue),var(--oc2-login-blue-2)) !important;
  border:0 !important;
  border-radius:13px !important;
  box-shadow:none !important;
}

/* Footer */
html body.oc2-page .oc2-footer strong,
html body.oc2-page .oc2-footer span{
  color:#c8d3e5 !important;
}

/* ------------------ WELCOME GLASS CARD ------------------ */
html body.oc2-page .oc-dynamic-welcome{
  position:fixed !important;
  left:6vw !important;
  bottom:5vh !important;
  z-index:3 !important;
  width:min(650px,43vw) !important;
  padding:20px 22px !important;
  border-radius:22px !important;
  border:1px solid rgba(255,255,255,.20) !important;
  background:
    linear-gradient(135deg,rgba(4,14,32,.58),rgba(4,14,32,.22)) !important;
  box-shadow:0 20px 55px rgba(0,0,0,.24) !important;
  backdrop-filter:blur(14px) saturate(120%) !important;
  -webkit-backdrop-filter:blur(14px) saturate(120%) !important;
  color:#fff !important;
  text-shadow:0 2px 18px rgba(0,0,0,.38);
}

.oc-dynamic-eyebrow{
  display:block;
  margin-bottom:8px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.22em;
  color:#dbe7ff;
}

.oc-dynamic-welcome h1{
  margin:0;
  font-size:clamp(30px,3.25vw,54px);
  line-height:1.05;
  font-weight:850;
  color:#fff;
}

.oc-dynamic-welcome p{
  margin:9px 0 0;
  font-size:15px;
  color:#eef3ff;
}

.oc-dynamic-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:15px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(8,20,43,.50);
  color:#f4f7ff;
  font-size:12px;
}

@media(max-width:900px){
  html body.oc2-page .oc-dynamic-welcome{
    display:none !important;
  }
}

@media(max-width:560px){
  html body.oc2-page .oc2-background{
    background-position:38% center !important;
  }
}

@media(prefers-reduced-motion:reduce){
  html body.oc2-page .oc2-background{
    transition:none !important;
  }
}
