/* SEMHOS V1 Professional+ | Login-only design enhancement
   This stylesheet must remain last in <head>. Does not modify auth logic. */

body .semhos-auth-stage {
  min-height: 100svh;
  box-sizing: border-box;
  padding: clamp(16px,3vw,35px) !important;
  gap: 18px;
  background:
    radial-gradient(circle at 9% 39%,rgba(0,143,227,.17),transparent 34%),
    radial-gradient(circle at 90% 7%,rgba(10,115,191,.10),transparent 34%),
    linear-gradient(145deg,#030d19,#061527 62%,#020a16) !important;
  color: #f4faff;
}

body .semhos-auth-stage .auth-frame {
  width: 100% !important;
  max-width: 1380px !important;
  min-height: min(750px, 87svh) !important;
  grid-template-columns: minmax(0,1.35fr) minmax(390px,.86fr) !important;
  gap: 0 !important;
  border: 1px solid rgba(36,167,245,.53) !important;
  border-radius: 26px !important;
  box-shadow: 0 35px 100px rgba(0,0,0,.52),0 0 64px rgba(4,164,247,.09) !important;
  overflow: hidden !important;
  background: #071529 !important;
}

body .semhos-auth-stage .auth-showcase {
  padding: clamp(24px,3vw,38px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(34,190,249,.5) !important;
  border-radius: 0 !important;
  background-color: #061b31 !important;
  background-image:
    linear-gradient(180deg,rgba(2,13,29,.22) 0%,rgba(1,15,32,.21) 37%,rgba(0,11,27,.78) 100%),
    linear-gradient(90deg,rgba(1,12,27,.10),rgba(0,10,25,.48)),
    url('/dashboard/assets/semhos-auth-datacenter-v1.webp') !important;
  background-size: cover !important;
  background-position: center center !important;
}

body .semhos-auth-stage .auth-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 53% 50%,rgba(1,16,37,.68) 0,rgba(1,15,31,.32) 39%, transparent 70%);
}

body .semhos-auth-stage .auth-showcase::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(27,178,240,.08);
  border-radius: 14px;
  pointer-events: none;
}

body .semhos-auth-stage .auth-showcase-top {
  width: 100%;
  position: relative;
  z-index: 1;
  font-size: 10px !important;
  color: #7be6ff !important;
  letter-spacing: .09em;
}
body .semhos-auth-stage .auth-showcase-top span:last-child {
  color:#b9ecff;
}

body .semhos-auth-stage .semhos-hero-center {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  padding: 20px 0 30px;
}

body .semhos-auth-stage .semhos-hero-emblem {
  width: clamp(80px,8.2vw,116px);
  height: clamp(80px,8.2vw,116px);
  border-radius: 25px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 22px rgba(0,195,255,.32));
  margin-bottom: 10px;
}
body .semhos-auth-stage .semhos-hero-name {
  display: block;
  font-size: clamp(35px,3.5vw,53px);
  line-height: 1.02;
  letter-spacing: .065em;
  font-weight: 850;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0,0,0,.36);
}
body .semhos-auth-stage .semhos-hero-subtitle {
  margin-top: 9px;
  color: #c8e5ff;
  font-size: clamp(10px,1vw,14px);
  letter-spacing: .19em;
  font-weight: 650;
  text-transform: uppercase;
}
body .semhos-auth-stage .semhos-hero-rule {
  width: 96px;
  height: 2px;
  border-radius: 10px;
  margin: 27px 0 22px;
  background: linear-gradient(90deg,transparent,#14e2ec,transparent);
}
body .semhos-auth-stage .semhos-hero-headline {
  font-size: clamp(20px,2.3vw,31px);
  line-height: 1.26;
  margin: 0;
  color: #fff;
  font-weight: 780;
  letter-spacing: -.025em;
}
body .semhos-auth-stage .semhos-hero-headline span { color: #22e0f5; }
body .semhos-auth-stage .semhos-hero-description {
  color: #c3dbf5;
  font-size: clamp(12px,1.1vw,15px);
  line-height: 1.6;
  max-width: 390px;
  margin: 15px auto 0;
  text-wrap: balance;
}

body .semhos-auth-stage .semhos-hero-modules {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  padding: 15px 0 4px;
  border-top: 1px solid rgba(95,190,246,.18);
}
body .semhos-auth-stage .semhos-hero-module {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  min-width: 0;
}
body .semhos-auth-stage .semhos-hero-module + .semhos-hero-module {
  border-left: 1px solid rgba(82,177,235,.3);
}
body .semhos-auth-stage .semhos-hero-module-icon {
  font-size: 23px;
  flex: 0 0 32px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #08d5ff;
  background: rgba(6,40,69,.68);
  border: 1px solid rgba(32,182,250,.3);
  border-radius: 10px;
}
body .semhos-auth-stage .semhos-hero-module-text strong {
  display: block;
  color: #effbff;
  font-size: 10px;
  letter-spacing: .09em;
}
body .semhos-auth-stage .semhos-hero-module-text small {
  display: block;
  color: #96c3e7;
  font-size: 10px;
  margin-top: 4px;
}

body .semhos-auth-stage .login.auth-form-panel {
  background:
    radial-gradient(ellipse at 56% -15%, rgba(12,98,157,.31),transparent 48%),
    linear-gradient(152deg,#0a2340 0%,#061a32 55%,#07152a 100%) !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  padding: clamp(32px,4.5vw,66px) !important;
  box-shadow: none !important;
  min-width: 0;
  justify-content: center;
}
body .semhos-auth-stage .auth-brandline {
  padding-bottom: 22px;
  margin-bottom: clamp(25px,3vw,40px);
  border-bottom: 1px solid rgba(86,163,220,.28);
}
body .semhos-auth-stage .auth-brandline img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  border-radius: 12px;
  flex-shrink: 0;
}
body .semhos-auth-stage .auth-brandline strong {
  font-size: clamp(20px,2vw,25px);
  letter-spacing: .06em;
}
body .semhos-auth-stage .auth-brandline small { color: #9bcfe9; }
body .semhos-auth-stage .auth-authmark {
  color: #30e0ed;
  font-size: 11px;
  letter-spacing: .14em;
}
body .semhos-auth-stage .auth-form-panel h1 {
  font-size: clamp(32px,3vw,43px) !important;
  line-height: 1.15;
  margin: 15px 0 10px;
  letter-spacing: -.035em;
  color:#f5fbff;
}
body .semhos-auth-stage .auth-form-panel > p:not(.error) {
  margin: 0 0 25px;
  color: #bad3e9;
  font-size: 14px;
  line-height: 1.65;
}
body .semhos-auth-stage .auth-login-form label {
  color: #e4f2ff;
  font-weight: 700;
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
}
body .semhos-auth-stage .auth-login-form input:not([type=hidden]) {
  border: 1px solid #436688 !important;
  border-radius: 11px !important;
  height: 54px !important;
  min-height: 54px;
  width: 100%;
  background: rgba(25,57,91,.7) !important;
  color: #f4faff;
  padding: 0 15px !important;
  box-sizing: border-box;
  font-size: 15px;
}
body .semhos-auth-stage .auth-login-form input:not([type=hidden]):focus {
  border-color: #24d6ff !important;
  outline: 3px solid rgba(20,198,255,.18) !important;
  outline-offset: 0;
}
body .semhos-auth-stage .auth-login-form .btn.primary {
  width: 100%;
  height: 56px;
  margin-top: 28px;
  border-radius: 11px;
  background: linear-gradient(104deg,#00bddd,#0863fa) !important;
  color: white;
  border: 1px solid rgba(71,214,255,.7);
  box-shadow: 0 15px 40px rgba(0,126,239,.22);
  font-weight: 800;
  font-size: 15px;
  transition: transform .2s ease,filter .2s ease;
}
body .semhos-auth-stage .auth-login-form .btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
body .semhos-auth-stage .auth-login-form .btn.primary:focus-visible {
  outline: 3px solid #53eaff;
  outline-offset: 3px;
}
body .semhos-auth-stage .auth-footnote {
  margin-top: 22px;
  color: #93c3e0;
}
body .semhos-auth-stage .auth-form-footer {
  border-top: 1px solid rgba(69,140,185,.27);
  padding-top: 23px;
  margin-top: 27px;
  font-size: 10px;
  color: #7bb2d0;
}
body .semhos-auth-stage .auth-copyright {
  color: #93b4d3;
  font-size: 11px;
  text-align: center;
  line-height: 1.8;
}

@media(max-width:960px) {
  body .semhos-auth-stage .auth-frame {
    grid-template-columns: minmax(0,1fr) minmax(345px,.88fr) !important;
    min-height: 640px !important;
  }
  body .semhos-auth-stage .auth-showcase { padding: 25px 20px !important; }
  body .semhos-auth-stage .semhos-hero-module-icon { display:none; }
  body .semhos-auth-stage .semhos-hero-module-text small { font-size: 9px; }
  body .semhos-auth-stage .login.auth-form-panel { padding: 32px !important; }
}
@media(max-width:690px) {
  body .semhos-auth-stage { padding: 12px 12px 25px !important; justify-content:flex-start; }
  body .semhos-auth-stage .auth-frame {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    min-height: 0 !important;
    max-width: 530px !important;
    border-radius: 19px !important;
  }
  body .semhos-auth-stage .auth-showcase {
    padding: 15px 20px 22px !important;
    min-height: 290px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(50,183,243,.34) !important;
    background-position: center 37% !important;
  }
  body .semhos-auth-stage .auth-showcase-top { font-size: 9px !important; }
  body .semhos-auth-stage .semhos-hero-center { padding: 12px 0 0; }
  body .semhos-auth-stage .semhos-hero-emblem { width: 70px; height: 70px; margin-bottom: 7px; }
  body .semhos-auth-stage .semhos-hero-name { font-size: 28px; }
  body .semhos-auth-stage .semhos-hero-subtitle { font-size: 8px; }
  body .semhos-auth-stage .semhos-hero-rule { margin: 13px 0 11px; }
  body .semhos-auth-stage .semhos-hero-headline { font-size: 18px; }
  body .semhos-auth-stage .semhos-hero-description { font-size: 11px; margin-top: 8px; }
  body .semhos-auth-stage .semhos-hero-modules { display:none !important; }
  body .semhos-auth-stage .login.auth-form-panel { padding: 27px 22px !important; }
  body .semhos-auth-stage .auth-brandline { margin-bottom: 22px; padding-bottom: 17px; }
  body .semhos-auth-stage .auth-form-panel h1 { font-size: 30px !important; }
  body .semhos-auth-stage .auth-login-form input:not([type=hidden]) { font-size: 16px; }
}
@media(max-width:370px) {
  body .semhos-auth-stage .auth-showcase { min-height: 270px !important; }
  body .semhos-auth-stage .auth-showcase-top span:last-child {display:none;}
  body .semhos-auth-stage .login.auth-form-panel {padding:22px 17px !important;}
}
@media(prefers-reduced-motion:reduce) {
  body .semhos-auth-stage * { transition:none !important; }
}
