/* ==========================================================================
   login.css — Login.aspx
   Concept: split screen. Left half is a live radar sweep on a deep navy
   field with a hospital-asset emblem at its center — the signature moment.
   Right half (45%) is the sign-in card on a clean white surface.
   ========================================================================== */

.login-body{
  overflow:hidden;
  background:var(--white);
  min-height:100vh;
  position:relative;
}

.login-shell{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:stretch;
}

/* ==========================================================================
   LEFT — visual half
   ========================================================================== */

.login-visual{
  flex:0 0 55%;
  max-width:55%;
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:
    radial-gradient(120% 100% at 30% 20%, #16305c 0%, var(--navy-900) 45%, var(--navy-950) 100%);
}

.visual-glow{
  position:absolute; top:-10%; left:-10%; width:70%; height:70%;
  background:radial-gradient(circle, rgba(59,125,251,.28) 0%, transparent 70%);
  filter:blur(10px);
  pointer-events:none;
}

.visual-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(120% 100% at 50% 50%, #000 40%, transparent 85%);
  mask-image:radial-gradient(120% 100% at 50% 50%, #000 40%, transparent 85%);
  pointer-events:none;
}

.radar-field{
  position:relative;
  width:84vmin;
  height:84vmin;
  max-width:860px;
  max-height:860px;
  pointer-events:none;
  z-index:1;
}
.radar-ring{
  position:absolute; top:50%; left:50%;
  border:1px solid rgba(111,227,217,.22);
  border-radius:50%;
  transform:translate(-50%,-50%);
}
.radar-ring.r1{ width:30%; height:30%; }
.radar-ring.r2{ width:54%; height:54%; }
.radar-ring.r3{ width:78%; height:78%; border-style:dashed; border-color:rgba(111,227,217,.18); }
.radar-ring.r4{ width:100%; height:100%; border-color:rgba(94,151,255,.14); }

.radar-sweep{
  position:absolute; inset:0; border-radius:50%;
  background:conic-gradient(from 0deg, rgba(94,151,255,.4), transparent 26%, transparent 100%);
  animation: sweep 7s linear infinite;
}
@keyframes sweep{ to{ transform:rotate(360deg); } }

/* hospital-asset emblem at the radar's center — uses the connected-devices illustration */
.center-emblem{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  display:flex; flex-direction:column; align-items:center; z-index:2;
}
.emblem-ring{
  position:absolute; top:50%; left:50%; width:300px; height:300px;
  transform:translate(-50%,-50%); border-radius:50%;
  background:radial-gradient(circle, rgba(94,151,255,.3) 0%, transparent 70%);
  animation:pulse-ring 2.6s ease-in-out infinite;
}
@keyframes pulse-ring{ 0%,100%{ opacity:.55; transform:translate(-50%,-50%) scale(.94); } 50%{ opacity:1; transform:translate(-50%,-50%) scale(1.04); } }
.emblem-badge{
  width:264px; height:264px;
  display:flex; align-items:center; justify-content:center;
  animation:breathe 4s ease-in-out infinite;
}
    .emblem-badge img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        top: 40px;
        position: relative;
    }
@keyframes breathe{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.03); } }
.emblem-label{ margin-top:14px; text-align:center; }
.emblem-label strong{ display:block; font-family:var(--font-display); font-size:21px; font-weight:800; color:#fff; letter-spacing:.2px; }
.emblem-label span{ display:block; margin-top:6px; font-size:14px; color:rgba(255,255,255,.62); letter-spacing:.2px; }

.blip{ position:absolute; transform:translate(-50%,-50%); display:flex; align-items:center; gap:8px; z-index:1; }
.blip .dot{ width:9px; height:9px; border-radius:50%; position:relative; flex:none; }
.blip .dot::after{
  content:''; position:absolute; inset:-7px; border-radius:50%;
  border:1px solid currentColor; opacity:.5; animation:blipping 2.8s ease-out infinite;
}
@keyframes blipping{ 0%{ transform:scale(.5); opacity:.7; } 100%{ transform:scale(2.4); opacity:0; } }
.blip.green{ color:var(--green-400); } .blip.green .dot{ background:var(--green-400); }
.blip.amber{ color:var(--amber-400); } .blip.amber .dot{ background:var(--amber-400); }
.blip.blue{ color:var(--cyan-300); } .blip.blue .dot{ background:var(--cyan-300); }
.blip .tag{
  font-size:13px; font-weight:600; color:#eef3ff;
  background:rgba(15,33,64,.6); border:1px solid rgba(255,255,255,.16);
  padding:5px 11px; border-radius:100px; white-space:nowrap; backdrop-filter:blur(6px);
}

.visual-footline{
  position:relative; z-index:2; margin-top:28px;
  display:flex; align-items:center; gap:10px;
  font-size:12px; color:rgba(255,255,255,.55);
  opacity:0; animation:rise .6s cubic-bezier(.22,.9,.32,1) .2s forwards;
}
.visual-footline strong{ color:#fff; font-weight:700; }
.visual-footline .dotsep{ width:3px; height:3px; border-radius:50%; background:rgba(255,255,255,.3); }

/* ==========================================================================
   RIGHT — sign-in half
   ========================================================================== */

.login-panel{
  flex:0 0 45%;
  max-width:45%;
  position:relative;
  min-height:100vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:40px 48px;
  background:var(--white);
}
.login-panel::before{
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(13,21,38,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13,21,38,.04) 1px, transparent 1px);
  background-size:40px 40px;
  -webkit-mask-image:radial-gradient(90% 80% at 50% 40%, #000 0%, transparent 75%);
  mask-image:radial-gradient(90% 80% at 50% 40%, #000 0%, transparent 75%);
  pointer-events:none;
}

.brand-lockup{
  position:relative; z-index:2;
  display:flex; align-items:center; gap:12px; margin-bottom:28px;
  opacity:0; animation:rise .6s cubic-bezier(.22,.9,.32,1) forwards;
}
.brand-lockup img{ height:48px; width:auto; }
.brand-lockup .divider{ width:1px; height:26px; background:var(--line); }
.brand-lockup .word strong{ display:block; font-family:var(--font-display); font-weight:700; font-size:14px; color:var(--ink-900); letter-spacing:.4px; }
.brand-lockup .word span{ display:block; font-size:10.5px; color:var(--ink-400); letter-spacing:1.2px; text-transform:uppercase; margin-top:1px; }

.login-card{
  position:relative; z-index:2;
  width:100%; max-width:404px;
  background:linear-gradient(175deg, #ffffff 0%, #f3f7ff 100%);
  border:1.5px solid rgba(59,125,251,.16);
  border-radius:22px;
  padding:36px 38px 32px;
  box-shadow:0 30px 70px rgba(24,63,153,.12), 0 2px 8px rgba(24,63,153,.06);
  opacity:0; transform:translateY(16px);
  animation:rise .65s cubic-bezier(.22,.9,.32,1) .16s forwards;
}
@keyframes rise{ to{ opacity:1; transform:translateY(0); } }

.login-card h1{ text-align:center; font-family:var(--font-display); font-size:23px; font-weight:800; color:var(--ink-900); letter-spacing:-.2px; }

.kicker{
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin:10px auto 0; padding:5px 12px; width:fit-content;
  border-radius:100px; background:rgba(59,125,251,.09); border:1px solid rgba(59,125,251,.18);
  font-size:10.5px; font-weight:700; letter-spacing:.7px; text-transform:uppercase; color:var(--blue-500);
}
.kicker svg{ width:12px; height:12px; flex:none; }

.login-card p.lead{ text-align:center; font-size:13px; color:var(--ink-600); margin-top:12px; line-height:1.5; }

.f-error{
  display:flex; align-items:center; gap:8px; margin-top:18px; padding:10px 13px;
  border-radius:10px; background:var(--red-50); border:1px solid rgba(229,72,77,.35);
  color:var(--red-500); font-size:12.5px; font-weight:600;
}

.field{ margin-top:20px; }
.field label{ font-size:12px; font-weight:600; color:var(--ink-700); display:block; margin-bottom:7px; }
.field .wrap{
  position:relative; border:1.5px solid var(--line); border-radius:11px;
  background:#fff;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.field .wrap:focus-within{
  border-color:var(--blue-400);
  background:#fff;
  box-shadow:0 0 0 4px rgba(94,151,255,.15);
}
.field input{
  width:100%; border:none; background:transparent; outline:none;
  font-size:14px; padding:12px 14px 12px 40px; color:var(--ink-900);
}
.field input::placeholder{ color:var(--ink-400); }
.field .wrap svg.ico{ position:absolute; left:13px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--ink-400); }
.field .wrap .toggle-pass{ position:absolute; right:12px; top:50%; transform:translateY(-50%); cursor:pointer; background:none; border:none; padding:2px; }
.field .wrap .toggle-pass svg{ width:16px; height:16px; color:var(--ink-400); }

.row-between{ display:flex; align-items:center; justify-content:space-between; margin-top:16px; font-size:12.5px; }
.remember{ display:flex; align-items:center; gap:7px; color:var(--ink-600); }
.remember input{ width:14px; height:14px; accent-color:var(--blue-500); }
.forgot{ color:var(--blue-500); font-weight:600; }
.forgot:hover{ text-decoration:underline; }

.btn-signin{
  width:100%; margin-top:22px; padding:13px 0; border:none; border-radius:11px;
  background:linear-gradient(135deg, var(--blue-500), var(--violet-400));
  color:#fff; font-weight:700; font-size:14px; cursor:pointer;
  position:relative; overflow:hidden;
  box-shadow:0 14px 30px rgba(59,125,251,.28);
  transition:transform .15s ease, box-shadow .2s ease;
}
.btn-signin:hover{ transform:translateY(-1px); box-shadow:0 18px 36px rgba(59,125,251,.36); }
.btn-signin::after{
  content:''; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform:skewX(-20deg);
}
.btn-signin:hover::after{ animation:sheen .8s ease forwards; }
@keyframes sheen{ to{ left:130%; } }

.divider-row{ display:flex; align-items:center; gap:12px; margin:20px 0 16px; }
.divider-row span{ font-size:11px; color:var(--ink-400); }
.divider-row::before, .divider-row::after{ content:''; flex:1; height:1px; background:var(--line); }

.btn-sso{
  width:100%; padding:11px 0; border-radius:11px; border:1.5px solid var(--line);
  background:#fff; font-weight:600; font-size:13.5px; color:var(--ink-900);
  display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.btn-sso:hover{ border-color:var(--blue-400); background:var(--surface); }
.btn-sso svg{ width:15px; height:15px; color:var(--ink-700); }

.secure-note{
  margin-top:22px; display:flex; align-items:center; justify-content:center; gap:7px;
  font-size:11px; color:var(--ink-400);
}
.secure-note svg{ width:12px; height:12px; }

.footline{
  position:relative; z-index:2; margin-top:26px; font-size:11px; color:var(--ink-400);
  opacity:0; animation:rise .6s cubic-bezier(.22,.9,.32,1) .3s forwards;
}

@media (max-width:1000px){
  .login-shell{ flex-direction:column; }
  .login-visual{ flex:0 0 auto; max-width:100%; width:100%; min-height:280px; padding:36px 20px; }
  .radar-field{ width:90vw; height:90vw; max-width:520px; max-height:520px; }
  .visual-footline{ margin-top:18px; }
  .login-panel{ flex:0 0 auto; max-width:100%; width:100%; min-height:0; padding:36px 24px 44px; }
}

@media (max-width:480px){
  .login-visual{ min-height:280px; }
  .radar-field{ width:320px; height:320px; }
  .emblem-ring{ width:150px; height:150px; }
  .emblem-badge{ width:140px; height:140px; }
  .emblem-label{ display:none; }
  .login-card{ padding:28px 22px 24px; }
}
