html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #07141b;
  color: #10222d;
}

.converxus-login-shell,
.converxus-login-shell * {
  box-sizing: border-box;
}

.converxus-login-page { height: 100vh; height: 100dvh; min-height: 0; margin: 0; overflow: hidden; }
.converxus-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(420px, 0.86fr);
  height: 100%;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #f4f7f8;
}

.converxus-login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5.5rem);
  color: #fff;
  background: linear-gradient(145deg, rgba(3, 18, 27, .98), rgba(5, 58, 66, .94) 54%, rgba(11, 159, 166, .9)), #07353d;
}
.brand-grid, .brand-glow, .brand-content, .brand-footer { position: relative; z-index: 1; }
.brand-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .17;
  background-image: linear-gradient(rgba(143, 240, 236, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 240, 236, .22) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(135deg, #000 0%, transparent 78%);
}
.brand-glow {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(116, 227, 225, .2);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(11, 159, 166, .18), inset 0 0 70px rgba(11, 159, 166, .1);
}
.brand-glow-one { width: min(44vw, 620px); height: min(44vw, 620px); right: -18%; top: 10%; }
.brand-glow-two { width: min(26vw, 360px); height: min(26vw, 360px); right: 4%; top: 28%; border-color: rgba(116, 227, 225, .13); }
.brand-content { max-width: 720px; margin: auto 0; min-height: 0; }
.brand-logo-link { display: inline-flex; align-items: center; margin-bottom: clamp(1.5rem, 4vh, 4rem); }
.brand-logo { display: block; width: clamp(180px, 23vw, 300px); height: auto; }

.brand-kicker, .login-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #8feae5;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
}
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #7cf0c7;
  box-shadow: 0 0 0 4px rgba(124, 240, 199, .12), 0 0 16px rgba(124, 240, 199, .75);
}
.brand-content h1 { margin: 1.3rem 0 1rem; color: #fff; font-size: clamp(2.8rem, 5.5vw, 6.5rem); font-weight: 300; letter-spacing: -.07em; line-height: .95; }
.brand-content h1 span { color: #74e3e1; font-weight: 700; }
.brand-description { max-width: 32rem; margin: 0; color: rgba(235, 255, 255, .77); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.65; }
.brand-tags { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.brand-tags span { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .8rem; border: 1px solid rgba(143, 234, 229, .2); border-radius: 999px; color: rgba(235, 255, 255, .84); background: rgba(2, 30, 37, .24); font-size: .76rem; letter-spacing: .02em; }
.brand-tags i { color: #74e3e1; }

.brand-instrumentation { display: flex; align-items: center; gap: .5rem; width: min(30rem, 72%); margin-top: clamp(1.5rem, 4vh, 3rem); }
.instrument-line { height: 3px; flex: 1; border-radius: 99px; background: linear-gradient(90deg, rgba(116, 227, 225, .1), rgba(116, 227, 225, .7)); }
.instrument-line-short { max-width: 2.3rem; background: #74e3e1; }
.instrument-line-long { flex: 1.8; }
.instrument-readout { display: flex; gap: .25rem; margin-left: .4rem; }
.instrument-readout span { display: block; width: .35rem; height: .35rem; border-radius: 50%; background: #7cf0c7; box-shadow: 0 0 10px rgba(124, 240, 199, .8); }

.brand-footer, .login-panel-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  color: rgba(235, 255, 255, .48);
  font-size: .72rem;
  letter-spacing: .05em;
}
.brand-footer-separator { color: #74e3e1; }

.converxus-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(1rem, 3vw, 3rem);
  background: radial-gradient(circle at 90% 8%, rgba(11, 159, 166, .1), transparent 28%), #f4f7f8;
}
.login-panel-inner { width: min(100%, 33rem); min-height: 0; }
.login-card { padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid #dce7e9; border-radius: 28px; background: rgba(255, 255, 255, .94); box-shadow: 0 24px 70px rgba(22, 54, 65, .12), 0 5px 18px rgba(22, 54, 65, .05); }
.login-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.login-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #0b9fa6, #006c7c); box-shadow: 0 10px 20px rgba(11, 159, 166, .24); }
.login-system-status { display: inline-flex; align-items: center; gap: .5rem; color: #60747d; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.login-system-status .status-dot { width: .4rem; height: .4rem; box-shadow: none; }
.login-heading { margin: clamp(1.25rem, 4vh, 2.5rem) 0 clamp(1.25rem, 3vh, 2rem); }
.login-eyebrow { color: #008b99; }
.login-heading h2 { margin: .55rem 0 .4rem; color: #10222d; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.login-heading p { margin: 0; color: #72838a; font-size: .95rem; }

#divAlert { max-width: none; margin-bottom: 1.25rem; border: 0; border-left: 4px solid #dc3545; border-radius: 10px; }
#divAlert.validation-summary-valid { display: none; }
#divAlert ul { margin-bottom: 0; }

.login-field { margin-bottom: clamp(.75rem, 2vh, 1.25rem); }
.login-field .form-label { margin-bottom: .55rem; color: #29404c; font-size: .82rem; font-weight: 700; }
.login-input-wrap { position: relative; }
.login-input-icon { position: absolute; top: 50%; left: 1rem; z-index: 1; color: #7c929a; transform: translateY(-50%); transition: color .2s ease; }
.login-input-wrap:focus-within .login-input-icon { color: #0b9fa6; }
.login-input-wrap .form-control { min-height: 3.25rem; padding: .75rem 1rem .75rem 2.85rem; border: 1px solid #d7e2e5; border-radius: 12px; color: #10222d; background: #fbfdfd; box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.login-input-wrap .form-control:focus { border-color: #0b9fa6; background: #fff; box-shadow: 0 0 0 4px rgba(11, 159, 166, .12); }
#imgCaptcha { display: block; width: 100%; height: auto; margin-bottom: .65rem; border-radius: 10px; }

.login-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; margin: .25rem 0 clamp(1rem, 2.5vh, 1.5rem); }
.login-options .form-check { margin: 0; }
.login-options .form-check-input { border-color: #b6cbd0; }
.login-options .form-check-input:checked { border-color: #0b9fa6; background-color: #0b9fa6; }
.login-options .form-check-label { color: #64777f; font-size: .8rem; }
.login-environment { display: inline-flex; align-items: center; gap: .4rem; color: #008b99; font-size: .68rem; font-weight: 700; letter-spacing: .1em; }

.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.3rem; padding: .8rem 1.15rem .8rem 1.35rem; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(100deg, #008b99, #0b9fa6 52%, #15729b); box-shadow: 0 12px 24px rgba(11, 159, 166, .22); font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.login-submit:hover, .login-submit:focus-visible { color: #fff; filter: saturate(1.12); transform: translateY(-2px); box-shadow: 0 16px 28px rgba(11, 159, 166, .3); }
.login-submit:active { color: #fff; transform: translateY(0); }
.login-security-note { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: clamp(.85rem, 2vh, 1.35rem) 0 0; color: #87969b; font-size: .72rem; text-align: center; }
.login-security-note i { color: #0b9fa6; }
.login-panel-footer { justify-content: center; margin-top: clamp(.75rem, 2vh, 1.5rem); color: #8b9ba0; }

@media (min-width: 981px) and (max-height: 760px) {
  .converxus-login-brand { padding: clamp(1rem, 3vw, 2.5rem); }
  .brand-logo-link { margin-bottom: clamp(.75rem, 2vh, 1.5rem); }
  .brand-logo { width: clamp(150px, 18vw, 230px); }
  .brand-content h1 { margin: .8rem 0 .6rem; font-size: clamp(2.4rem, 4.8vw, 4.8rem); }
  .brand-description { max-width: 28rem; font-size: .9rem; line-height: 1.4; }
  .brand-tags { gap: .4rem; margin-top: 1rem; }
  .brand-tags span { padding: .4rem .6rem; font-size: .68rem; }
  .brand-instrumentation { margin-top: 1rem; }
  .converxus-login-panel { overflow: hidden; padding: clamp(.75rem, 2vw, 1.5rem); }
  .login-card { padding: clamp(1rem, 2vw, 1.5rem); border-radius: 20px; }
  .login-icon { width: 2.35rem; height: 2.35rem; border-radius: 11px; }
  .login-heading { margin: .85rem 0 .85rem; }
  .login-heading h2 { font-size: clamp(1.8rem, 3vw, 2.35rem); }
  .login-field { margin-bottom: .6rem; }
  .login-input-wrap .form-control { min-height: 2.85rem; padding-top: .55rem; padding-bottom: .55rem; }
  .login-options { margin-top: .1rem; margin-bottom: .75rem; }
  .login-submit { min-height: 2.75rem; padding-top: .6rem; padding-bottom: .6rem; }
  .login-security-note { margin-top: .7rem; }
  .login-panel-footer { margin-top: .5rem; font-size: .65rem; }
}

@media (max-width: 980px) {
  body { overflow: auto; }
  .converxus-login-page { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
  .converxus-login-shell { grid-template-columns: 1fr; }
  .converxus-login-shell { height: auto; min-height: 100vh; min-height: 100dvh; }
  .converxus-login-brand { height: auto; min-height: clamp(28rem, 72svh, 42rem); }
  .converxus-login-panel { height: auto; min-height: auto; overflow: visible; padding: 4rem 1.5rem; }
  .brand-glow-one { width: 38rem; height: 38rem; right: -16rem; top: 4rem; }
}

@media (max-width: 540px) {
  .converxus-login-brand { min-height: 34rem; padding: 1.5rem; }
  .brand-logo-link { margin-bottom: 3.5rem; }
  .brand-logo { width: 190px; }
  .brand-content h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .brand-tags { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-top: 1.4rem; }
  .brand-instrumentation { width: 100%; margin-top: 2.5rem; }
  .brand-footer { font-size: .65rem; }
  .converxus-login-panel { padding: 2rem 1rem; }
  .login-card { padding: 1.35rem; border-radius: 20px; }
  .login-heading { margin: 2rem 0 1.5rem; }
  .login-options { align-items: flex-start; flex-direction: column; gap: .75rem; }
}

@media (prefers-color-scheme: dark) {
  body { background: #07141b; }
  .converxus-login-panel { background: radial-gradient(circle at 90% 8%, rgba(11, 159, 166, .16), transparent 28%), #101c23; }
  .login-card { border-color: #2d434d; background: rgba(25, 40, 49, .96); box-shadow: 0 24px 70px rgba(0, 0, 0, .24); }
  .login-heading h2, .login-field .form-label { color: #f1f7f8; }
  .login-heading p, .login-system-status, .login-options .form-check-label { color: #a8babf; }
  .login-input-wrap .form-control { border-color: #3b555e; color: #f1f7f8; background: #13232b; }
  .login-input-wrap .form-control:focus { border-color: #4bd0ce; background: #162a33; }
  .login-panel-footer { color: #84979d; }
}
