/* ==========================================================
   BAIHOST – Login (WHMCS 8.13)
   Concept: code.html (2026-01) – 1:1 visual parity (Desktop/Tablet)
   Notes:
   - No Tailwind at runtime. Pure CSS.
   - Left panel hidden on mobile (<=1023px) to match existing behavior.
   ========================================================== */

:root{
  --bg-deep-navy:#0F172A;
  --panel-navy:#161E2E;
  --accent-teal:#92C7C7;
  --text-muted:#94A3B8;
  --input-border:rgba(148,163,184,0.10);
  --glass-white:rgba(255,255,255,0.05);
}

html,body{height:100%;margin:0}

body.bh-login-body,
body{
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  background-color:var(--bg-deep-navy);
  color:#fff;
}

/* Force fonts against parent theme (Six) */
.bh-auth, .bh-auth *{font-family:"Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif !important;}
.bh-input,.bh-btn,.bh-check__label,.bh-label,.bh-forgot{font-family:"Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif !important;}
.bh-left__title,.bh-right__title,.bh-left__card-title{font-family:"DM Sans","Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif !important;}


/* Fullscreen centering */
.bh-auth{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  box-sizing:border-box;
}

@media (min-width:768px){
  .bh-auth{padding:32px}
}

/* Main frame */
.bh-auth__frame{
  width:100%;
  max-width:1152px; /* ~max-w-6xl */
  min-height:700px;
  display:flex;
  overflow:hidden;
  border-radius:40px; /* 2.5rem */
  background:var(--panel-navy);
  box-shadow:0 30px 60px rgba(0,0,0,0.55);
}

.bh-auth__col{display:flex;box-sizing:border-box}

/* Left */
.bh-auth__col--left{
  position:relative;
  width:50%;
  overflow:hidden;
  background-image:url("https://images.pexels.com/photos/9253462/pexels-photo-9253462.jpeg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.bh-auth__col--left:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to right, rgba(15,23,42,0.40), rgba(15,23,42,0.80));
}

.bh-left{
  position:relative;
  z-index:1;
  height:100%;
  padding:64px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-sizing:border-box;
}

.bh-left__brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:80px;
}

.bh-left__mark{
  width:32px;
  height:32px;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,0.40);
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bh-left__mark > span{
  width:14px;
  height:14px;
  background:#fff;
  border-radius:3px;
  display:block;
}

.bh-left__word{
  font-weight:700;
  font-size:20px;
  letter-spacing:0.20em;
  text-transform:uppercase;
}

.bh-left__title{
  margin:0;
  font-size:60px;
  font-weight:300;
  letter-spacing:-0.02em;
  line-height:1.05;
}

.bh-left__title span{
  color:var(--accent-teal);
  font-weight:500;
}

/* Announcement card */
.bh-left__card{
  max-width:384px; /* max-w-sm */
  padding:32px;
  border-radius:24px; /* rounded-3xl */
  background:rgba(0,0,0,0.40);
  border:1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-sizing:border-box;
}

.bh-left__card-meta{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}

.bh-left__card-kicker{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.20em;
  color:var(--accent-teal);
}

.bh-left__card-dot{
  width:4px;
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,0.30);
}

.bh-left__card-date{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:0.20em;
  color:rgba(255,255,255,0.50);
}

.bh-left__card-title{
  margin:0 0 12px;
  font-size:18px;
  font-weight:500;
  line-height:1.35;
}

.bh-left__card-desc{
  margin:0 0 24px;
  font-size:14px;
  font-weight:300;
  line-height:1.5;
  color:rgba(255,255,255,0.60);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.bh-left__card-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.20em;
  text-decoration:none;
  color:#fff;
  transition:color .2s ease;
}

.bh-left__card-link:hover{color:var(--accent-teal)}

/* Right */
.bh-auth__col--right{
  width:50%;
  display:flex;
  justify-content:center;
}

.bh-right{
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:32px;
  box-sizing:border-box;
}

@media (min-width:768px){
  .bh-right{padding:64px}
}

@media (min-width:1024px){
  .bh-right{padding:96px}
}

.bh-right__intro{margin-bottom:48px}

.bh-right__title{
  margin:0 0 8px;
  font-size:30px;
  font-weight:300;
}

.bh-right__subtitle{
  margin:0;
  color:var(--text-muted);
  font-weight:300;
}

.bh-right__alert{
  margin:0 0 18px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(239,68,68,0.12);
  border:1px solid rgba(239,68,68,0.25);
  color:rgba(254,226,226,0.95);
  font-size:13px;
}

/* Form */
.bh-form{display:flex;flex-direction:column;gap:24px}

.bh-field{display:flex;flex-direction:column;gap:8px}

.bh-label,
.bh-labelrow .bh-label{
  display:block;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.20em;
  color:var(--text-muted);
}

.bh-labelrow{display:flex;align-items:center;justify-content:space-between;gap:12px}

.bh-forgot{
  font-size:10px;
  text-decoration:none;
  color:var(--text-muted);
  transition:color .2s ease;
}

.bh-forgot:hover{color:var(--accent-teal)}

.bh-input{
  width:100%;
  box-sizing:border-box;
  background:rgba(255,255,255,0.03);
  border:1px solid var(--input-border);
  border-radius:12px;
  padding:16px 20px;
  font-size:14px;
  font-weight:300;
  color:#fff;
  outline:none;
  transition:all .2s ease;
}

.bh-input::placeholder{color:rgba(255,255,255,0.20)}

.bh-input:focus{
  border-color:var(--accent-teal);
  box-shadow:0 0 0 1px var(--accent-teal);
}

.bh-check{display:flex;align-items:center;gap:12px}

.bh-check__input{
  width:14px;
  height:14px;
  margin:0;
  border-radius:4px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.05);
}

.bh-check__label{font-size:12px;color:var(--text-muted)}

.bh-btn{
  width:100%;
  padding:16px;
  border:0;
  border-radius:12px;
  background:var(--accent-teal);
  color:var(--bg-deep-navy);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.20em;
  cursor:pointer;
  transition:all .25s cubic-bezier(0.4,0,0.2,1);
}

.bh-btn:hover{
  filter:brightness(1.1);
  transform:translateY(-1px);
  box-shadow:0 4px 20px rgba(146,199,199,0.30);
}

/* Separator */
.bh-sep{
  position:relative;
  margin:40px 0;
}

.bh-sep:before{
  content:"";
  position:absolute;
  left:0;right:0;top:50%;
  border-top:1px solid rgba(255,255,255,0.05);
}

.bh-sep span{
  position:relative;
  display:inline-block;
  left:50%;
  transform:translateX(-50%);
  padding:0 16px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:0.20em;
  color:var(--text-muted);
  background:var(--panel-navy);
}

/* Social */
.bh-social{display:block}

/* Normalize WHMCS linkedaccounts markup into a single button style */
.bh-social .providerPreLinking,
.bh-social .social-signin-btns{margin:0}

/* IMPORTANT: Linked Accounts output includes <script> siblings.
   A blanket selector like "> *" would force scripts to display and expose JS source.
   We only blockify the interactive containers and explicitly hide scripts. */

.bh-social script{display:none !important}

.bh-social a,
.bh-social button{
  width:100% !important;
  box-sizing:border-box;
  padding:16px 24px !important;
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,0.10) !important;
  background:transparent !important;
  color:#fff !important;
  text-decoration:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  font-size:14px !important;
  font-weight:500 !important;
  transition:background .2s ease, border-color .2s ease;
}

.bh-social a:hover,
.bh-social button:hover{background:rgba(255,255,255,0.05) !important}

.bh-social img{width:20px;height:20px}

/* Footer */
.bh-footer{
  margin-top:64px;
  display:flex;
  flex-wrap:wrap;
  gap:16px 32px;
  justify-content:center;
}

@media (min-width:1024px){
  .bh-footer{justify-content:flex-start}
}

.bh-footer a{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--text-muted);
  text-decoration:none;
  transition:color .2s ease;
}

.bh-footer a:hover{color:#fff}

/* Responsive: hide left panel on mobile/tablet (existing requirement) */
@media (max-width:1023px){
  .bh-auth__frame{flex-direction:column;min-height:auto}
  .bh-auth__col--left{display:none}
  .bh-auth__col--right{width:100%}
}
