:root {
  color: #e9f7f2;
  font-family: "DM Sans", sans-serif;
  background: #071d20;
  --muted: #91b4ae;
  --mint: #9fe6cf;
  --lime: #d6f36a;
  --line: rgba(188, 235, 220, .18);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #071d20; }
.login-shell {
  min-height: 100vh; display: grid; place-items: center; padding: clamp(18px, 5vw, 64px); position: relative; overflow: hidden;
  background: linear-gradient(110deg, rgba(4, 24, 27, .96) 0%, rgba(6, 39, 42, .78) 44%, rgba(8, 32, 37, .28) 100%), url("./assets/climate-login-bg.png") center / cover no-repeat;
}
.login-shell::before, .login-shell::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(159, 230, 207, .18); border-radius: 50%; }
.login-shell::before { width: 54vw; height: 54vw; right: -23vw; top: -22vw; }
.login-shell::after { width: 32vw; height: 32vw; left: -19vw; bottom: -18vw; }
.login-panel {
  width: min(100%, 1060px); display: grid; grid-template-columns: minmax(280px, .92fr) minmax(360px, 1.08fr); gap: clamp(32px, 7vw, 92px); padding: clamp(28px, 5vw, 62px); position: relative; z-index: 1;
  border: 1px solid var(--line); border-radius: 28px; background: rgba(7, 29, 32, .76); box-shadow: 0 30px 90px rgba(0, 0, 0, .32), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(18px); animation: panel-in .65s ease-out both;
}
.login-panel::before { content: "PMOC • OPERAÇÃO • CONFORMIDADE"; display: block; grid-column: 1; align-self: start; color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.company-name { grid-column: 1; align-self: center; margin: 0; color: #f1fbf7; font-size: clamp(2.15rem, 4.4vw, 4.5rem); font-weight: 700; line-height: .98; letter-spacing: -.07em; }
.company-name::after { content: "Gestão técnica para ambientes mais seguros."; display: block; max-width: 270px; margin-top: 24px; color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.divider { display: none; }
h1 { grid-column: 2; grid-row: 1; margin: 0 0 26px; color: #f1fbf7; font-size: clamp(1.6rem, 2.8vw, 2.35rem); font-weight: 600; letter-spacing: -.04em; }
form { grid-column: 2; display: grid; gap: 17px; }
.field { display: grid; gap: 8px; text-align: left; }
.field span { color: #b8d8cf; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
input { width: 100%; border: 1px solid rgba(173, 222, 208, .23); border-radius: 12px; padding: 16px 17px; color: #f1fbf7; background: rgba(255,255,255,.07); font: inherit; font-size: 16px; outline: 0; transition: border-color .2s, background .2s, box-shadow .2s; }
input::placeholder { color: #759992; }
input:focus { border-color: var(--mint); background: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(159, 230, 207, .12); }
button { margin-top: 5px; border: 0; border-radius: 12px; padding: 16px 18px; color: #102a27; background: var(--lime); font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .08em; cursor: pointer; transition: transform .2s, filter .2s; }
button:hover { filter: brightness(1.06); transform: translateY(-2px); }
button:active { transform: translateY(0); }
button:disabled { cursor: wait; opacity: .7; }
.forgot-link { grid-column: 2; display: inline-block; margin-top: -4px; color: var(--muted); font-size: 13px; text-underline-offset: 4px; }
.forgot-link:hover { color: var(--mint); }
.form-message { min-height: 18px; margin: 0; color: #ffb4a7; font-size: 13px; }
.form-message.success { color: var(--mint); }
@keyframes login-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.login-panel.shake { animation: login-shake .42s ease-in-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .login-panel, .login-panel.shake { animation: none; } }
@media (max-width: 720px) {
  .login-panel { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px 26px; }
  .login-panel::before, .company-name, h1, form, .forgot-link { grid-column: 1; }
  .company-name { font-size: clamp(2.3rem, 12vw, 4rem); }
  .company-name::after { margin-top: 14px; }
  h1 { grid-row: auto; margin-bottom: 0; }
}
.dashboard-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: url("./assets/climate-login-bg.png") center / cover no-repeat; }
.dashboard-panel { width: min(100%, 760px); padding: 64px; border: 1px solid rgba(255,255,255,.72); border-radius: 15px; background: rgba(248,253,254,.72); box-shadow: 0 18px 48px rgba(66,151,176,.13); backdrop-filter: blur(13px); }
.eyebrow { margin: 0 0 16px; color: #39738b; font-size: 12px; letter-spacing: .18em; font-weight: 700; }
.dashboard-panel h1 { margin-bottom: 10px; font-size: 36px; }
.dashboard-panel p:not(.eyebrow) { color: #4e737e; font-size: 18px; }
.dashboard-panel button { width: 150px; margin-top: 28px; }

/* Login cartoon: mantém a arte aprovada e deixa os controles reais sobrepostos. */
.login-shell {
  min-height: 100vh;
  padding: 0;
  display: grid;
  place-items: center;
  background: #dff7ff url("./assets/login-background-sem-ar-condicionado.png") center / cover no-repeat;
}
.login-shell::before, .login-shell::after { display: none; }
#login-snow { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.login-panel {
  width: min(100vw, 177.07vh); height: min(100vh, 56.47vw); min-height: 0; display: block; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  backdrop-filter: none; animation: panel-in .55s ease-out both;
}
.login-panel::before, .company-name, .login-panel h1 { display: none; }
.login-panel form { position: absolute; z-index: 3; top: 39.3%; left: 54.9%; width: 29.2%; display: grid; gap: clamp(10px, .85vw, 16px); }
.login-panel .field { display: block; }
.login-panel .field span { display: none; }
.login-panel input { height: clamp(42px, 3.75vw, 64px); padding: 0 18px; border: 1px solid transparent; border-radius: 14px; color: #164b55; background: rgba(255,255,255,.02); font-size: clamp(14px, 1.3vw, 20px); }
.login-panel input::placeholder { color: transparent; }
.login-panel input:focus { border-color: rgba(8,116,122,.34); background: rgba(255,255,255,.16); box-shadow: 0 0 0 4px rgba(8,116,122,.1); }
.login-panel form button { height: clamp(42px, 3.75vw, 64px); margin-top: 0; border-radius: 14px; color: transparent; background: transparent; box-shadow: none; }
.login-panel form button:hover { color: transparent; background: rgba(200,232,77,.12); box-shadow: none; }
.login-panel .form-message { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; color: #a74132; text-align: center; text-shadow: 0 1px #fff; }
.login-panel .forgot-link { position: absolute; z-index: 4; top: 67.8%; left: 72.5%; width: 15.5%; height: 30px; margin: 0; overflow: hidden; color: transparent; }
.login-panel .forgot-link:hover { color: transparent; }
@media (max-width: 720px) {
  .login-shell { min-height: 100svh; height: auto; padding: 18px; background-size: auto 100%; background-position: center top; }
  .login-panel { width: 100%; height: calc(100svh - 36px); min-height: 0; display: flex; align-items: flex-end; }
  .login-panel form { position: relative; top: auto; left: auto; width: 100%; gap: 16px; padding: 24px; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 12px 35px rgba(8,75,85,.22); }
  .login-panel .field span { display: block; margin-bottom: 7px; color: #4e777c; }
  .login-panel input { height: 50px; border-color: #d7eef0; background: #f7fcfc; }
  .login-panel input::placeholder { color: #a8c4c7; }
  .login-panel form button { height: 52px; color: #084b55; background: #c8e84d; box-shadow: 0 4px 0 #94b930; }
  .login-panel form button:hover { color: #084b55; background: #d7f66b; box-shadow: 0 6px 0 #94b930; }
  .login-panel .forgot-link { position: static; display: block; width: auto; height: auto; margin: 0 24px 14px; color: #56868b; text-align: right; }
  .login-panel .forgot-link:hover { color: #08747a; }
}

/* Cartão real: os controles não dependem das posições desenhadas na imagem. */
.login-shell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100vh;
  min-height: 0;
  padding: clamp(24px, 4vw, 72px) clamp(28px, 10vw, 190px);
  background:
    linear-gradient(110deg, rgba(4, 34, 42, .46), rgba(4, 34, 42, .12) 48%, rgba(4, 34, 42, .04) 78%),
    url("./assets/hospital-universitario-londrina-atual.png") center / cover no-repeat;
}
body:has(.login-shell) { overflow: hidden; }
#login-snow { z-index: 1; mix-blend-mode: screen; opacity: .62; }
.login-panel {
  width: min(33.333vw, 480px);
  height: min(calc(100vh - 48px), 680px);
  min-height: 0;
  display: flex;
  position: relative;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(32px, 3.5vw, 58px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(8, 75, 85, .2);
  overflow: auto;
  animation: none;
}
.login-panel::before, .company-name, .divider { display: none; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: clamp(26px, 3vw, 40px); color: #075d65; font-size: clamp(24px, 2.1vw, 34px); font-weight: 800; letter-spacing: -.06em; }
.login-brand span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px 13px 13px 5px; color: #075d65; background: #c8e84d; font-size: 22px; transform: rotate(-7deg); }
.login-panel h1 { display: block; margin: 0; color: #075d65; font-size: clamp(34px, 3vw, 48px); font-weight: 800; letter-spacing: -.06em; }
.login-subtitle { display: block; margin: 9px 0 34px; color: #6d899f; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.45; }
.login-panel form { position: static; z-index: auto; width: 100%; display: grid; gap: 18px; }
.login-panel .field { display: grid; gap: 8px; }
.login-panel .field span { display: block; color: #4e777c; font-size: 13px; font-weight: 700; }
.login-panel input { width: 100%; height: 58px; padding: 0 18px; border: 2px solid #d7e6f0; border-radius: 16px; color: #164b55; background: #fff; font-size: 16px; }
.login-panel input::placeholder { color: #a6b5c5; }
.login-panel input:focus { border-color: #08747a; background: #fff; box-shadow: 0 0 0 4px rgba(8,116,122,.1); }
.login-panel form button { width: 100%; height: 60px; margin-top: 7px; border-radius: 18px; color: #fff; background: #08747a; box-shadow: 0 5px 0 #075d65; font-size: 17px; }
.login-panel form button:hover { color: #fff; background: #0b8b8f; box-shadow: 0 7px 0 #075d65; }
.login-panel .form-message { position: static; width: 100%; min-height: 18px; margin: 0; color: #a74132; text-align: center; text-shadow: none; }
.login-panel .forgot-link { position: static; display: block; width: fit-content; height: auto; margin: 21px 0 0 auto; overflow: visible; color: #08747a; font-size: 14px; font-weight: 700; text-align: right; }
.login-panel .forgot-link:hover { color: #075d65; }
.login-hospital { display: block; margin: auto 0 0; padding-top: 24px; border-top: 1px solid #dceaf0; color: #7b96a2; font-size: 13px; font-weight: 700; text-align: center; }
@media (min-width: 901px) {
  .login-panel { transform: translateX(-5cm); }
}
@media (max-width: 900px) {
  body:has(.login-shell) { overflow: auto; }
  .login-shell { justify-content: center; padding: 24px; background-position: 36% center; }
  .login-panel { width: min(100%, 540px); height: auto; min-height: 0; padding: 34px 28px; border-radius: 28px; overflow: visible; }
  .login-brand { margin-bottom: 24px; }
  .login-hospital { margin-top: 28px; }
}

/* Login final: somente acesso e uma ilustração técnica discreta ao fundo. */
body:has(.login-shell) { overflow: auto; background: #0a2d33; }
.login-shell { display: grid; grid-template-columns: minmax(390px, 460px) 1fr; min-height: 100vh; padding: 48px; gap: clamp(30px, 7vw, 120px); background: #0a2d33; }
.login-panel { align-self: center; grid-column: 1; grid-row: 1; width: auto !important; height: auto; min-height: 0; transform: none !important; padding: 48px; border: 0; border-radius: 22px; background: #f6fbf9; box-shadow: 0 24px 80px rgba(0, 12, 17, .28); overflow: visible; }
.login-brand { margin-bottom: 42px; color: #073f47; }
.login-brand span { color: #073f47; background: #b7ed3a; }
.login-panel h1, .login-subtitle, .login-hospital { display: none; }
.login-panel form { max-width: none; gap: 18px; }
.login-panel .field span { color: #18545b; }
.login-panel input { height: 54px; border-color: #c9ded9; color: #164b55; background: #fff; }
.login-panel input:focus { border-color: #0b7376; box-shadow: 0 0 0 4px rgba(11, 115, 118, .12); }
.login-panel form button { height: 54px; margin-top: 8px; color: #062328; background: #b7ed3a; box-shadow: 0 4px 0 #7fae27; }
.login-panel form button:hover { color: #062328; background: #c9f36b; }
.login-panel .forgot-link { color: #0b7376; }
.login-hospital-visual { display: grid; place-items: center; grid-column: 2; grid-row: 1; min-height: calc(100vh - 96px); padding: 20px; overflow: hidden; background: #0a2d33 !important; }
.hospital-visual-copy, .hospital-status-card, .audit-map { display: none; }
.login-illustration { width: min(760px, 100%); height: auto; overflow: visible; opacity: .9; }
.illustration-building, .illustration-roof, .illustration-hvac, .illustration-air, .illustration-window, .illustration-arrow { fill: none; stroke: #91dcd0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.illustration-building { fill: rgba(145, 220, 208, .04); stroke: #b7ed3a; stroke-width: 4; }
.illustration-roof { stroke: rgba(145, 220, 208, .5); }
.illustration-window { stroke: rgba(145, 220, 208, .5); stroke-width: 2; }
.illustration-hvac { fill: rgba(183, 237, 58, .12); stroke: #b7ed3a; stroke-width: 4; }
.illustration-air { stroke: #b7ed3a; stroke-width: 4; stroke-dasharray: 10 16; opacity: .85; }
.illustration-arrow { stroke: #b7ed3a; stroke-width: 4; }
@media (max-width: 900px) {
  .login-shell { display: block; padding: 24px; }
  .login-panel { width: min(100%, 460px) !important; margin: 0 auto; padding: 36px 28px; }
  .login-hospital-visual { min-height: 300px; padding: 30px 0 0; }
  .login-illustration { width: min(620px, 100%); }
}

/* Arte aprovada: a imagem inteira Ã© a tela; os controles reais ficam sobre os campos desenhados. */
body:has(.login-shell) { overflow: hidden !important; background: #03191d !important; }
body:has(.login-shell) .login-shell {
  position: relative !important;
  display: block !important;
  width: 100vw !important;
  min-height: 100vh !important;
  height: 100vh !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #03191d url("./assets/login-aprovado.png") center / cover no-repeat !important;
}
body:has(.login-shell) #login-snow,
body:has(.login-shell) .login-hospital-visual { display: none !important; }
body:has(.login-shell) .login-panel {
  position: static !important;
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body:has(.login-shell) .login-panel > :not(form) { display: none !important; }
body:has(.login-shell) .login-panel form {
  position: absolute !important;
  top: 48.55% !important;
  left: 8.63% !important;
  display: block !important;
  width: 25.83% !important;
  max-width: none !important;
  margin: 0 !important;
}
body:has(.login-shell) .login-panel .field { display: block !important; margin: 0 0 5.18% !important; }
body:has(.login-shell) .login-panel .field span { display: none !important; }
body:has(.login-shell) .login-panel input {
  display: block !important;
  width: 100% !important;
  height: 5.32vw !important;
  min-height: 42px !important;
  max-height: 58px !important;
  padding: 0 4.1vw !important;
  border: 0 !important;
  outline: 0 !important;
  color: #edf9fa !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: clamp(12px, 1.05vw, 18px) !important;
}
body:has(.login-shell) .login-panel input::placeholder { color: transparent !important; }
body:has(.login-shell) .login-panel input:focus { box-shadow: inset 0 0 0 2px rgba(142, 232, 226, .72) !important; border-radius: 9px !important; }
body:has(.login-shell) .login-panel form button {
  display: block !important;
  width: 100% !important;
  height: 6.18vw !important;
  min-height: 48px !important;
  max-height: 64px !important;
  margin: 0 !important;
  border: 0 !important;
  color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
body:has(.login-shell) #form-message { position: absolute; top: 100%; left: 0; color: #fff !important; }
@media (max-width: 900px) {
  body:has(.login-shell) { overflow: auto !important; }
  body:has(.login-shell) .login-shell { min-height: 100svh !important; height: 100svh !important; background-position: center !important; }
  body:has(.login-shell) .login-panel form { width: 43.4% !important; left: 14.5% !important; }
}

/* Composição aprovada: imagem congelada à direita e acesso funcional à esquerda. */
body:has(.login-shell) .login-shell { display: grid !important; grid-template-columns: 42% 58% !important; min-height: 100vh !important; padding: 0 !important; gap: 0 !important; background: #06191d !important; }
body:has(.login-shell) .login-panel { align-self: center !important; grid-column: 1 !important; grid-row: 1 !important; width: min(532px, calc(100% - 96px)) !important; height: auto !important; min-height: 0 !important; margin: 0 auto !important; padding: 48px 50px !important; transform: none !important; border: 1px solid rgba(145, 226, 213, .32) !important; border-radius: 18px !important; background: rgba(5, 29, 34, .88) !important; box-shadow: 0 24px 70px rgba(0, 0, 0, .28) !important; overflow: visible !important; }
body:has(.login-shell) .login-panel h1 { display: block !important; color: #fff !important; }
body:has(.login-shell) .login-subtitle { display: block !important; color: #a5bebc !important; }
body:has(.login-shell) .login-panel input { color: #fff !important; background: rgba(5, 32, 37, .76) !important; border-color: rgba(145, 226, 213, .42) !important; }
body:has(.login-shell) .login-panel form button { color: #071c20 !important; background: #a9ef4b !important; box-shadow: 0 4px 0 #6e9d25 !important; }
body:has(.login-shell) .login-hospital-visual { position: relative !important; grid-column: 2 !important; grid-row: 1 !important; display: block !important; min-height: 100vh !important; padding: 0 !important; background: #06191d url("./assets/login-aprovado.png") right center / auto 100% no-repeat !important; }
body:has(.login-shell) .login-hospital-visual > * { display: none !important; }
body:has(.login-shell) .login-hospital-visual .login-approved-image { display: block !important; position: absolute; right: 0; top: 0; width: auto; height: 100%; max-width: none; object-fit: contain; }
body:has(.login-shell) { overflow: hidden; background: #06191d; }
.login-shell { display: grid; grid-template-columns: 42% 58%; min-height: 100vh; padding: 0; gap: 0; background: #06191d; }
.login-panel { align-self: center; grid-column: 1; grid-row: 1; width: min(532px, calc(100% - 96px)) !important; height: auto; min-height: 0; margin: 0 auto; padding: 48px 50px; transform: none !important; border: 1px solid rgba(145, 226, 213, .32); border-radius: 18px; background: rgba(5, 29, 34, .88); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); overflow: visible; }
.login-brand { margin-bottom: 34px; color: #f5fbfc; }
.login-brand span { color: #071c20; background: #b7ed3a; }
.login-panel h1 { display: block; max-width: none; margin: 0 0 8px; color: #fff; font-size: 34px; letter-spacing: -.04em; }
.login-subtitle { display: block; max-width: none; margin: 0 0 34px; color: #a5bebc; font-size: 16px; line-height: 1.4; }
.login-panel form { max-width: none; gap: 16px; }
.login-panel .field span { color: #e8f5f1; }
.login-panel input { height: 52px; border: 1px solid rgba(145, 226, 213, .42); border-radius: 10px; color: #fff; background: rgba(5, 32, 37, .76); }
.login-panel input::placeholder { color: #739794; }
.login-panel input:focus { border-color: #8ee6dc; background: rgba(9, 48, 54, .9); box-shadow: 0 0 0 3px rgba(142, 230, 220, .12); }
.login-panel form button { height: 52px; margin-top: 8px; border-radius: 10px; color: #071c20; background: #a9ef4b; box-shadow: 0 4px 0 #6e9d25; }
.login-panel form button:hover { color: #071c20; background: #c2fa69; }
.login-panel .forgot-link { margin-top: 20px; color: #8ee6dc; }
.login-hospital { display: none; }
.login-hospital-visual { grid-column: 2; grid-row: 1; display: block; min-height: 100vh; padding: 0; background: #06191d url("./assets/login-aprovado.png") right center / auto 100% no-repeat !important; }
.login-hospital-visual > * { display: none; }
@media (max-width: 900px) {
  body:has(.login-shell) { overflow: auto; }
  .login-shell { display: block; padding: 24px; background: #06191d; }
  .login-panel { width: min(100%, 532px) !important; margin: 0 auto; padding: 38px 28px; }
  .login-hospital-visual { min-height: 420px; margin: 24px -24px -24px; background-size: auto 100% !important; }
}

/* Composição aprovada: imagem congelada à direita e acesso funcional à esquerda. */
body:has(.login-shell) { overflow: hidden; background: #06191d; }
.login-shell { display: grid; grid-template-columns: 42% 58%; min-height: 100vh; padding: 0; gap: 0; background: #06191d; }
.login-panel { align-self: center; grid-column: 1; grid-row: 1; width: min(532px, calc(100% - 96px)) !important; height: auto; min-height: 0; margin: 0 auto; padding: 48px 50px; transform: none !important; border: 1px solid rgba(145, 226, 213, .32); border-radius: 18px; background: rgba(5, 29, 34, .88); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); overflow: visible; }
.login-brand { margin-bottom: 34px; color: #f5fbfc; }
.login-brand span { color: #071c20; background: #b7ed3a; }
.login-panel h1 { display: block; max-width: none; margin: 0 0 8px; color: #fff; font-size: 34px; letter-spacing: -.04em; }
.login-subtitle { display: block; max-width: none; margin: 0 0 34px; color: #a5bebc; font-size: 16px; line-height: 1.4; }
.login-panel form { max-width: none; gap: 16px; }
.login-panel .field span { color: #e8f5f1; }
.login-panel input { height: 52px; border: 1px solid rgba(145, 226, 213, .42); border-radius: 10px; color: #fff; background: rgba(5, 32, 37, .76); }
.login-panel input::placeholder { color: #739794; }
.login-panel input:focus { border-color: #8ee6dc; background: rgba(9, 48, 54, .9); box-shadow: 0 0 0 3px rgba(142, 230, 220, .12); }
.login-panel form button { height: 52px; margin-top: 8px; border-radius: 10px; color: #071c20; background: #a9ef4b; box-shadow: 0 4px 0 #6e9d25; }
.login-panel form button:hover { color: #071c20; background: #c2fa69; }
.login-panel .forgot-link { margin-top: 20px; color: #8ee6dc; }
.login-hospital { display: none; }
.login-hospital-visual { grid-column: 2; grid-row: 1; display: block; min-height: 100vh; padding: 0; background: #06191d url("./assets/login-aprovado.png") right center / auto 100% no-repeat !important; }
.login-hospital-visual > * { display: none; }
@media (max-width: 900px) {
  body:has(.login-shell) { overflow: auto; }
  .login-shell { display: block; padding: 24px; background: #06191d; }
  .login-panel { width: min(100%, 532px) !important; margin: 0 auto; padding: 38px 28px; }
  .login-hospital-visual { min-height: 420px; margin: 24px -24px -24px; background-size: auto 100% !important; }
}

/* Em telas intermediárias, o cartão ocupa dois terços da largura disponível. */
@media (min-width: 441px) and (max-width: 900px) {
  .login-panel { width: 33.333%; min-width: 240px; padding: 26px 22px; }
  .login-brand { margin-bottom: 18px; font-size: 22px; }
  .login-brand span { width: 34px; height: 34px; font-size: 19px; }
  .login-panel h1 { font-size: 34px; }
  .login-subtitle { margin: 10px 0 24px; font-size: 15px; }
  .login-panel form { gap: 13px; }
  .login-panel .field { gap: 6px; }
  .login-panel input { height: 48px; font-size: 14px; }
  .login-panel form button { height: 50px; margin-top: 4px; font-size: 16px; }
  .login-panel .forgot-link { margin-top: 16px; font-size: 13px; }
  .login-hospital { margin-top: 22px; font-size: 12px; }
}

/* Composição aprovada: login preto à esquerda e foto do HU à direita. */
body:has(.login-shell) { background: #05090b; }
.login-shell {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #05090b url("./assets/hospital-universitario-londrina-atual.png") right center / auto 100% no-repeat;
}
.login-shell::after { display: none; }
.login-shell::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 66.667%;
  height: 100%;
  background: url("./assets/hospital-universitario-londrina-atual.png") center / cover no-repeat;
}
.login-panel {
  width: 33.333%;
  height: 100vh;
  min-height: 0;
  transform: none;
  z-index: 2;
  justify-content: center;
  padding: clamp(42px, 7vw, 112px);
  border: 0;
  border-radius: 0;
  color: #f5fbfc;
  background: #05090b;
  box-shadow: 24px 0 80px rgba(0, 0, 0, .28);
  overflow: auto;
}
.login-brand, .login-panel h1 { color: #f5fbfc; }
.login-subtitle { color: #a8bbc0; }
.login-panel .field span { color: #b7c8cc; }
.login-panel input { border-color: #26383d; color: #f5fbfc; background: #101a1e; }
.login-panel input::placeholder { color: #789096; }
.login-panel input:focus { border-color: #53c5c0; background: #132328; box-shadow: 0 0 0 4px rgba(83,197,192,.12); }
.login-panel form button { color: #071317; background: #8ee6dc; box-shadow: 0 5px 0 #4baca8; }
.login-panel form button:hover { color: #071317; background: #a9f3ea; }
.login-panel .forgot-link { color: #8ee6dc; }
.login-panel .forgot-link:hover { color: #c2fff8; }
.login-hospital { border-color: #26383d; color: #91a8ad; }
@media (max-width: 900px) {
  .login-shell::after { display: none; }
  .login-panel { width: 100%; min-height: 100vh; height: auto; padding: 42px 28px; }
}

@media (min-width: 901px) {
  .login-panel { padding: 56px clamp(42px, 4.6vw, 88px); }
  .login-brand,
  .login-panel h1,
  .login-subtitle,
  .login-panel form,
  .login-panel .forgot-link,
  .login-hospital { width: min(100%, 430px); }
  .login-panel h1 { font-size: clamp(34px, 2.5vw, 42px); }
  .login-subtitle { font-size: 15px; margin-bottom: 26px; }
  .login-panel form { gap: 14px; }
  .login-panel input { height: 48px; font-size: 14px; }
  .login-panel form button { height: 50px; font-size: 15px; }
  .login-panel .forgot-link { margin-top: 16px; }
}

.login-shell::after { display: none !important; }

@media (min-width: 901px) {
  .login-panel {
    width: 480px !important;
    max-width: calc(100vw - 40px);
    min-width: 0;
    padding: 48px clamp(42px, 3.3vw, 64px);
  }
  .login-brand,
  .login-panel h1,
  .login-subtitle,
  .login-panel form,
  .login-panel .forgot-link,
  .login-hospital { width: 100%; }
}

/* A fotografia ocupa toda a tela; o acesso permanece sobre ela. */
.login-shell {
  background: url("./assets/hospital-universitario-londrina-atual.png") center / cover no-repeat;
}

.login-panel {
  background: transparent;
  box-shadow: none;
}

.login-brand,
.login-panel h1,
.login-subtitle,
.login-panel .field span,
.login-panel .forgot-link,
.login-hospital {
  text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}

/* Login hospitalar: foto real do HU, acesso claro e contexto operacional. */
body:has(.login-shell) { overflow: hidden; background: #f4faf7; }
.login-shell { display: grid; grid-template-columns: 39.6vw 60.4vw; min-height: 100vh; padding: 0; background: #f4faf7; }
#login-snow { display: none; }
.login-panel { grid-column: 1; grid-row: 1; width: auto !important; height: 100vh; min-height: 0; transform: none !important; padding: clamp(48px, 6vw, 78px) clamp(42px, 5vw, 76px); border: 0; border-radius: 0; background: #f4faf7; box-shadow: none; color: #073f47; overflow: hidden; z-index: 2; }
.login-brand, .login-panel h1, .login-subtitle, .login-panel .field span, .login-panel .forgot-link, .login-hospital { text-shadow: none; }
.login-brand { margin-bottom: clamp(70px, 9vh, 112px); color: #073f47; }
.login-brand span { color: #073f47; background: #b7ed3a; }
.login-panel h1 { max-width: 430px; margin-bottom: 22px; color: #073f47; font-size: clamp(36px, 3.15vw, 52px); line-height: 1.03; }
.login-subtitle { max-width: 410px; margin-bottom: 54px; color: #557276; font-size: 16px; line-height: 1.45; }
.login-panel form { max-width: 420px; gap: 18px; }
.login-panel .field { gap: 8px; }
.login-panel .field span { color: #18545b; }
.login-panel input { height: 58px; border: 1px solid #c8ddd9; border-radius: 14px; color: #164b55; background: #fff; }
.login-panel input:focus { border-color: #0b7376; background: #fff; }
.login-panel form button { height: 58px; margin-top: 8px; border-radius: 14px; color: #fff; background: #0b7376; box-shadow: 0 4px 0 #07545c; }
.login-panel form button:hover { color: #fff; background: #0d8587; }
.login-panel .forgot-link { margin-top: 20px; color: #0b7376; }
.login-hospital { margin-top: 106px; color: #6b898b; }
.login-hospital-visual { position: relative; grid-column: 2; grid-row: 1; min-height: 100vh; padding: clamp(58px, 7vw, 90px) clamp(48px, 6vw, 86px); overflow: hidden; color: #fff; background: linear-gradient(rgba(4, 42, 45, .66), rgba(4, 42, 45, .58)), url("./assets/hospital-universitario-londrina-atual.png") center / cover no-repeat; }
.hospital-visual-copy { position: relative; z-index: 1; max-width: 700px; }
.hospital-visual-copy > span { color: #c9f36b; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.hospital-visual-copy h2 { margin: 34px 0 26px; color: #fff; font-size: clamp(42px, 4vw, 66px); line-height: 1.06; letter-spacing: -.05em; }
.hospital-visual-copy p { max-width: 620px; margin: 0; color: #e4f4f0; font-size: 18px; line-height: 1.45; }
.hospital-status-card { position: absolute; z-index: 1; right: clamp(30px, 6vw, 86px); bottom: clamp(42px, 8vh, 86px); left: clamp(30px, 6vw, 86px); padding: 28px 30px 30px; border: 1px solid rgba(190, 239, 224, .36); border-radius: 22px; background: rgba(3, 39, 42, .88); box-shadow: 0 20px 55px rgba(0, 25, 27, .26); }
.hospital-status-card small { color: #9ec4bf; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.hospital-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.hospital-status-grid div { position: relative; padding-left: 22px; }
.hospital-status-grid div::before { content: ""; position: absolute; top: 7px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #b7ed3a; }
.hospital-status-grid b { display: block; color: #fff; font-size: 15px; }
.hospital-status-grid span { display: block; margin-top: 8px; color: #b7d2ce; font-size: 13px; }
@media (max-width: 900px) {
  body:has(.login-shell) { overflow: auto; }
  .login-shell { display: block; min-height: 100svh; }
  .login-panel { min-height: 100svh; height: auto; padding: 42px 28px 48px; }
  .login-brand { margin-bottom: 64px; }
  .login-subtitle { margin-bottom: 36px; }
  .login-hospital { margin-top: 60px; }
  .login-hospital-visual { min-height: 600px; padding: 52px 28px 260px; }
  .hospital-visual-copy h2 { margin-top: 24px; font-size: clamp(38px, 10vw, 56px); }
  .hospital-status-card { right: 28px; bottom: 32px; left: 28px; }
}
@media (max-width: 520px) { .hospital-status-grid { grid-template-columns: 1fr; gap: 18px; } .hospital-status-card { padding: 22px; } }

@media (min-width: 901px) and (max-height: 900px) {
  .login-panel { padding-top: 42px; padding-bottom: 38px; }
  .login-brand { margin-bottom: 48px; }
  .login-subtitle { margin-bottom: 30px; }
  .login-panel input { height: 48px; }
  .login-panel form button { height: 50px; }
  .login-hospital { margin-top: 46px; }
}

/* Direção técnica: a tela representa uma plataforma de auditoria, não uma foto institucional. */
body:has(.login-shell) { background: #06191d; }
.login-shell { grid-template-columns: minmax(420px, 42%) 1fr; background: #06191d; }
.login-panel { width: auto !important; min-height: 100vh; height: 100vh; padding: clamp(42px, 5vw, 74px) clamp(42px, 5vw, 82px); border-right: 1px solid rgba(152, 225, 211, .12); background: #06191d; color: #f1fbf7; }
.login-brand { margin-bottom: clamp(58px, 8vh, 92px); color: #f1fbf7; }
.login-brand span { color: #06191d; background: #b7ed3a; }
.login-panel h1 { max-width: 390px; color: #f1fbf7; font-size: clamp(38px, 3.3vw, 58px); letter-spacing: -.06em; }
.login-subtitle { max-width: 390px; margin-bottom: 40px; color: #8fb2b0; }
.login-panel .field span { color: #afd0cb; }
.login-panel input { border-color: rgba(155, 222, 211, .2); color: #f1fbf7; background: #0b292e; }
.login-panel input::placeholder { color: #618783; }
.login-panel input:focus { border-color: #8ee6dc; background: #0f3338; box-shadow: 0 0 0 4px rgba(142, 230, 220, .12); }
.login-panel form button { color: #06191d; background: #b7ed3a; box-shadow: 0 4px 0 #729d24; }
.login-panel form button:hover { color: #06191d; background: #c9f36b; }
.login-panel .forgot-link { color: #8ee6dc; }
.login-hospital { border-color: rgba(155, 222, 211, .18); color: #6d918e; }
.login-hospital-visual { isolation: isolate; padding: clamp(48px, 6vw, 90px) clamp(38px, 6vw, 90px); background: #0a292d !important; }
.login-hospital-visual::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .34; background-image: linear-gradient(rgba(141, 222, 210, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(141, 222, 210, .12) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(135deg, #000 0 58%, transparent 88%); }
.login-hospital-visual::after { content: "PMOCSYS / AUDIT ENGINE / LIVE"; position: absolute; right: 44px; top: 42px; color: rgba(176, 229, 218, .56); font: 700 10px/1 "DM Sans", sans-serif; letter-spacing: .16em; }
.hospital-visual-copy { max-width: 720px; }
.hospital-visual-copy > span { color: #b7ed3a; font-size: 11px; letter-spacing: .14em; }
.hospital-visual-copy h2 { margin: 26px 0 18px; color: #f1fbf7; font-size: clamp(36px, 4.4vw, 68px); line-height: 1.01; letter-spacing: -.065em; }
.hospital-visual-copy p { max-width: 560px; color: #9dc1bd; font-size: 16px; }
.audit-map { position: relative; width: min(100%, 760px); margin-top: clamp(46px, 8vh, 92px); padding: 24px; border: 1px solid rgba(145, 226, 213, .28); border-radius: 18px; background: rgba(5, 24, 28, .58); box-shadow: 0 22px 70px rgba(0, 0, 0, .2); }
.audit-map-head { display: flex; justify-content: space-between; align-items: center; color: #6e9995; font-size: 10px; letter-spacing: .1em; }
.audit-map-head b { color: #d4ece6; font-size: 11px; }
.audit-map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.audit-room { position: relative; min-height: 92px; padding: 17px; border: 1px solid rgba(138, 210, 200, .2); border-radius: 12px; background: #10383d; }
.audit-room.active { border-color: #76d9c9; box-shadow: inset 0 0 0 1px rgba(118, 217, 201, .25); }
.audit-room.warning { border-color: #e7b85d; }
.audit-room b { display: block; color: #effbf7; font-size: 14px; }
.audit-room span { display: block; margin-top: 8px; color: #8fb8b2; font-size: 12px; }
.audit-room i { position: absolute; right: 14px; top: 15px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #072226; background: #b7ed3a; font-size: 11px; font-style: normal; font-weight: 800; }
.audit-room.warning i { color: #3a2809; background: #e7b85d; }
.airflow-line { position: absolute; height: 1px; background: #75dcd0; box-shadow: 0 0 12px #75dcd0; transform-origin: left; opacity: .8; }
.airflow-line-one { width: 170px; right: -115px; top: 54px; transform: rotate(24deg); }
.airflow-line-two { width: 130px; right: -84px; top: 74px; transform: rotate(24deg); opacity: .45; }
.hospital-status-card { right: clamp(38px, 6vw, 90px); bottom: clamp(34px, 6vh, 64px); left: clamp(38px, 6vw, 90px); padding: 20px 24px 22px; border-color: rgba(145, 226, 213, .24); background: #071f23; box-shadow: none; }
.hospital-status-card small { color: #6e9995; }
.hospital-status-grid { gap: 18px; margin-top: 20px; }
.hospital-status-grid div::before { background: #b7ed3a; }
.hospital-status-grid b { color: #effbf7; font-size: 13px; }
.hospital-status-grid span { margin-top: 5px; color: #83aaa5; font-size: 11px; }
@media (max-width: 900px) {
  .login-shell { display: block; background: #06191d; }
  .login-panel { min-height: 0; height: auto; padding: 38px 26px 48px; border-right: 0; border-bottom: 1px solid rgba(152, 225, 211, .12); }
  .login-brand { margin-bottom: 54px; }
  .login-hospital-visual { min-height: 760px; padding: 48px 26px 270px; }
  .audit-map { margin-top: 48px; }
  .hospital-status-card { right: 26px; bottom: 28px; left: 26px; }
}

/* Login final: somente acesso e uma ilustração técnica discreta ao fundo. */
body:has(.login-shell) { overflow: auto; background: #0a2d33; }
.login-shell { display: grid; grid-template-columns: minmax(390px, 460px) 1fr; min-height: 100vh; padding: 48px; gap: clamp(30px, 7vw, 120px); background: #0a2d33; }
.login-panel { align-self: center; grid-column: 1; grid-row: 1; width: auto !important; height: auto; min-height: 0; transform: none !important; padding: 48px; border: 0; border-radius: 22px; background: #f6fbf9; box-shadow: 0 24px 80px rgba(0, 12, 17, .28); overflow: visible; }
.login-brand { margin-bottom: 42px; color: #073f47; }
.login-brand span { color: #073f47; background: #b7ed3a; }
.login-panel h1, .login-subtitle, .login-hospital { display: none; }
.login-panel form { max-width: none; gap: 18px; }
.login-panel .field span { color: #18545b; }
.login-panel input { height: 54px; border-color: #c9ded9; color: #164b55; background: #fff; }
.login-panel input:focus { border-color: #0b7376; box-shadow: 0 0 0 4px rgba(11, 115, 118, .12); }
.login-panel form button { height: 54px; margin-top: 8px; color: #062328; background: #b7ed3a; box-shadow: 0 4px 0 #7fae27; }
.login-panel form button:hover { color: #062328; background: #c9f36b; }
.login-panel .forgot-link { color: #0b7376; }
.login-hospital-visual { display: grid; place-items: center; grid-column: 2; grid-row: 1; min-height: calc(100vh - 96px); padding: 20px; overflow: hidden; background: #0a2d33 !important; }
.hospital-visual-copy, .hospital-status-card, .audit-map { display: none; }
.login-illustration { width: min(760px, 100%); height: auto; overflow: visible; opacity: .9; }
.illustration-building, .illustration-roof, .illustration-hvac, .illustration-air, .illustration-window, .illustration-arrow { fill: none; stroke: #91dcd0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.illustration-building { fill: rgba(145, 220, 208, .04); stroke: #b7ed3a; stroke-width: 4; }
.illustration-roof { stroke: rgba(145, 220, 208, .5); }
.illustration-window { stroke: rgba(145, 220, 208, .5); stroke-width: 2; }
.illustration-hvac { fill: rgba(183, 237, 58, .12); stroke: #b7ed3a; stroke-width: 4; }
.illustration-air { stroke: #b7ed3a; stroke-width: 4; stroke-dasharray: 10 16; opacity: .85; }
.illustration-arrow { stroke: #b7ed3a; stroke-width: 4; }
@media (max-width: 900px) {
  .login-shell { display: block; padding: 24px; }
  .login-panel { width: min(100%, 460px) !important; margin: 0 auto; padding: 36px 28px; }
  .login-hospital-visual { min-height: 300px; padding: 30px 0 0; }
  .login-illustration { width: min(620px, 100%); }
}
