:root {
  --ink: #12302f;
  --muted: #607876;
  --deep: #0d3432;
  --deep-2: #164f4b;
  --accent: #2bb9aa;
  --accent-2: #70dfd0;
  --paper: #f4f7f5;
  --glass: rgba(255,255,255,.72);
  --line: rgba(23,77,73,.13);
  --shadow: 0 28px 80px rgba(12,50,48,.17);
  --radius: 30px;
  font-family: "Aptos", "Segoe UI Variable", "Inter", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(80,217,201,.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(35,119,113,.13), transparent 29rem),
    linear-gradient(145deg, #eef5f2 0%, #f8f7f3 48%, #edf4f1 100%);
  overflow-x: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
.ambient { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.ambient span {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .34;
  background: linear-gradient(145deg, rgba(62,196,181,.22), rgba(19,92,87,.06));
  animation: drift 18s ease-in-out infinite alternate;
}
.ambient span:nth-child(1) { width: 360px; height: 360px; left: -120px; top: 18%; }
.ambient span:nth-child(2) { width: 430px; height: 430px; right: -170px; bottom: -120px; animation-delay: -7s; }
.ambient span:nth-child(3) { width: 180px; height: 180px; right: 22%; top: -50px; animation-delay: -12s; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(.96); } to { transform: translate3d(24px,-18px,0) scale(1.05); } }
.login-page { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.brand-bar {
  width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand-link { border: 0; background: transparent; padding: 0; display: flex; align-items: center; gap: 14px; color: inherit; text-align: left; }
.brand-mark {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px;
  font-size: 1.35rem; font-weight: 900; color: var(--deep); background: rgba(236,250,247,.92);
  border: 1px solid rgba(28,109,103,.13); box-shadow: 0 12px 34px rgba(16,61,58,.12);
  transition: transform .24s ease, box-shadow .24s ease;
}
.brand-link:hover .brand-mark { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 18px 38px rgba(16,61,58,.17); }
.brand-name { display: block; font-size: 1.18rem; font-weight: 850; letter-spacing: -.035em; }
.brand-name .human { color: var(--deep); }
.brand-name .evo { color: var(--accent); }
.brand-sub { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; }
.secure-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: #315e5a; background: rgba(255,255,255,.58); border: 1px solid var(--line); font-size: .78rem; font-weight: 750; }
.secure-chip i { width: 8px; height: 8px; border-radius: 50%; background: #35b699; box-shadow: 0 0 0 5px rgba(53,182,153,.1); }
.login-main { width: min(1440px, calc(100% - 48px)); margin: auto; padding: 20px 0 42px; }
.login-shell {
  min-height: min(760px, calc(100vh - 150px)); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
  border-radius: 38px; overflow: hidden; border: 1px solid rgba(22,84,80,.12); box-shadow: var(--shadow);
  background: rgba(255,255,255,.58); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
}
.welcome-panel {
  position: relative; overflow: hidden; min-height: 660px; padding: clamp(42px, 5vw, 72px);
  display: flex; flex-direction: column;
  color: #f6fffd; background:
    radial-gradient(circle at 78% 12%, rgba(103,225,210,.22), transparent 34%),
    radial-gradient(circle at 5% 95%, rgba(59,175,163,.17), transparent 32%),
    linear-gradient(145deg, #0e3b39 0%, #164f4b 56%, #0e3937 100%);
}
.welcome-panel::before, .welcome-panel::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(191,255,246,.09); pointer-events: none; }
.welcome-panel::before { width: 560px; height: 560px; right: -240px; bottom: -270px; }
.welcome-panel::after { width: 400px; height: 400px; right: -160px; bottom: -190px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; color: #b7e9e2; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: #93d7ce; }
.welcome-panel h1 { max-width: 780px; margin: 0; font-size: clamp(2.8rem, 5.8vw, 5.7rem); line-height: .95; letter-spacing: -.065em; font-weight: 820; }
.welcome-panel h1 span { color: #7ee6d8; }
.welcome-lead { max-width: 700px; margin: 28px 0 0; color: rgba(237,255,252,.78); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.7; }
.access-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 38px; max-width: 760px; }
.feature { min-height: 98px; padding: 17px; border: 1px solid rgba(220,255,250,.1); border-radius: 20px; background: rgba(255,255,255,.055); backdrop-filter: blur(10px); }
.feature svg { width: 22px; height: 22px; color: #79dfd2; }
.feature strong { display: block; margin-top: 12px; color: #fff; font-size: .88rem; }
.feature small { display: block; margin-top: 4px; color: rgba(231,255,251,.58); font-size: .72rem; line-height: 1.35; }
.mobile-card {
  position: relative; left: auto; right: auto; bottom: auto;
  display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: center; gap: 18px;
  width: 100%; max-width: 760px; min-height: 112px; margin-top: 24px; padding: 16px 18px;
  border-radius: 22px; background: rgba(4,37,35,.38); border: 1px solid rgba(224,255,251,.1); backdrop-filter: blur(14px);
  z-index: 2;
}
.qr-mini { width: 88px; height: 88px; padding: 7px; border-radius: 17px; background: #f6fbfa; align-self: center; }
.qr-mini img { width: 100%; height: 100%; display: block; border-radius: 8px; }
.mobile-card > div:last-child { min-width: 0; }
.mobile-card strong { display: block; color: #fff; font-size: .96rem; line-height: 1.3; }
.mobile-card p { margin: 6px 0 0; color: rgba(235,255,252,.68); font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 72px); background: rgba(250,252,251,.78); }
.auth-card { width: min(100%, 510px); margin: auto; }
.auth-heading { margin-bottom: 30px; }
.auth-heading span { display: inline-flex; align-items: center; gap: 8px; color: #43706d; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.auth-heading span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(43,185,170,.1); }
.auth-heading h2 { margin: 12px 0 8px; font-size: clamp(2rem, 3.2vw, 2.75rem); letter-spacing: -.055em; line-height: 1; }
.auth-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.login-form { display: grid; gap: 17px; }
.field { display: grid; gap: 8px; }
.field label { color: #284d4a; font-size: .78rem; font-weight: 800; }
.field-wrap { position: relative; }
.field input {
  width: 100%; height: 57px; border: 1px solid rgba(29,91,87,.16); border-radius: 17px; padding: 0 48px 0 16px;
  color: var(--ink); background: rgba(255,255,255,.82); outline: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.field input:focus { border-color: rgba(38,169,155,.55); box-shadow: 0 0 0 5px rgba(43,185,170,.09), 0 12px 25px rgba(15,73,69,.07); transform: translateY(-1px); }
.field-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #68827f; pointer-events: none; }
.password-toggle { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 12px; color: #5c7976; background: transparent; display: grid; place-items: center; }
.password-toggle:hover { color: var(--deep); background: rgba(20,92,87,.06); }
.form-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 22px; }
.remember { display: flex; align-items: center; gap: 9px; color: #617b78; font-size: .76rem; }
.remember input { accent-color: var(--accent); }
.help-link { border: 0; background: transparent; color: #216d66; font-weight: 750; font-size: .76rem; padding: 0; }
.primary-btn, .demo-btn {
  min-height: 56px; border: 0; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.primary-btn { color: #fff; background: linear-gradient(135deg, #185b56, #229e92); box-shadow: 0 15px 30px rgba(26,124,116,.22); }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px rgba(26,124,116,.28); filter: saturate(1.05); }
.primary-btn:disabled { opacity: .68; cursor: wait; transform: none; }
.separator { display: flex; align-items: center; gap: 14px; margin: 6px 0; color: #91a19f; font-size: .72rem; }
.separator::before, .separator::after { content: ""; height: 1px; flex: 1; background: rgba(29,91,87,.11); }
.demo-btn { color: #285f5b; background: rgba(235,247,244,.84); border: 1px solid rgba(26,104,98,.12); }
.demo-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(24,85,81,.10); }
.demo-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-links .demo-btn { min-height: 50px; font-size: .82rem; }
.auth-note { margin-top: 20px; padding: 14px 15px; border-radius: 16px; color: #637c79; background: rgba(237,246,244,.68); border: 1px solid rgba(25,89,85,.09); font-size: .74rem; line-height: 1.55; }
.auth-message { display: none; margin-bottom: 17px; padding: 13px 15px; border-radius: 15px; font-size: .8rem; line-height: 1.45; }
.auth-message.show { display: block; animation: messageIn .25s ease-out; }
.auth-message.error { color: #87334a; background: #fff0f3; border: 1px solid #f0c4cf; }
.auth-message.success { color: #225e50; background: #eaf8f2; border: 1px solid #bce7d8; }
@keyframes messageIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.login-footer { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 22px; display: flex; justify-content: space-between; gap: 20px; color: #7b8d8a; font-size: .72rem; }
.status-overlay { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; padding: 20px; background: rgba(7,37,35,.58); backdrop-filter: blur(12px); }
.status-overlay.show { display: grid; }
.status-card { width: min(470px, 100%); padding: 34px; border-radius: 28px; text-align: center; color: var(--ink); background: rgba(252,254,253,.94); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 30px 80px rgba(4,25,24,.28); }
.status-icon { width: 66px; height: 66px; margin: 0 auto 19px; border-radius: 22px; display: grid; place-items: center; color: #17675f; background: #e7f7f3; }
.status-card h3 { margin: 0; font-size: 1.55rem; letter-spacing: -.04em; }
.status-card p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.profile-badge { display: inline-flex; margin-top: 18px; padding: 8px 13px; border-radius: 999px; color: #1d625a; background: #e8f7f3; font-size: .76rem; font-weight: 850; }
.status-loader { width: 28px; height: 28px; margin: 22px auto 0; border-radius: 50%; border: 3px solid #d8efea; border-top-color: #2ca99b; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-action { margin-top: 20px; border: 0; border-radius: 14px; min-height: 46px; padding: 0 18px; color: #fff; background: #1e766e; font-weight: 800; }
@media (max-width: 1040px) {
  .login-shell { grid-template-columns: 1fr; }
  .welcome-panel { min-height: auto; }
  .auth-panel { padding-top: 54px; padding-bottom: 54px; }
}
@media (max-width: 700px) {
  .brand-bar, .login-main, .login-footer { width: min(100% - 24px, 1440px); }
  .secure-chip { display: none; }
  .brand-sub { font-size: .72rem; }
  .login-shell { border-radius: 26px; }
  .welcome-panel { min-height: auto; padding: 34px 24px; }
  .welcome-panel h1 { font-size: 3rem; }
  .access-features { grid-template-columns: 1fr; gap: 8px; }
  .feature { min-height: 72px; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; }
  .feature strong { margin: 0; }
  .feature small { grid-column: 2; margin-top: -14px; }
  .mobile-card { grid-template-columns: 74px minmax(0,1fr); margin-top: 20px; padding: 14px; }
  .qr-mini { width: 74px; height: 74px; }
  .auth-panel { padding: 38px 23px; }
  .demo-links { grid-template-columns: 1fr; }
  .login-footer { flex-direction: column; align-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (min-width: 701px) and (max-width: 1180px) {
  .welcome-panel h1 { font-size: clamp(3rem, 6vw, 4.7rem); }
  .access-features { margin-top: 30px; }
  .feature { min-height: 112px; }
}
@media (max-width: 460px) {
  .mobile-card { grid-template-columns: 1fr; text-align: center; }
  .qr-mini { margin: 0 auto; }
}


/* HUMANEVO 3.5.7 - FUNDO HOLOGRAFICO E RESPONSIVIDADE ADAPTATIVA */
.welcome-panel > *:not(.login-hologram) { position: relative; z-index: 2; }
.login-hologram {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(8,49,48,.52), rgba(10,51,54,.28)), url('./assets/login-hologram.gif') center/cover no-repeat;
  opacity: .34;
  filter: saturate(1.08) contrast(1.02);
  pointer-events: none;
}
.login-hologram::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,57,54,.92) 0%, rgba(12,57,54,.64) 52%, rgba(12,57,54,.25) 100%);
}
html[data-device='mobile'] .login-shell { min-height: auto; }
html[data-device='mobile'] .auth-panel { order: -1; }
html[data-device='mobile'] .mobile-card { display: none; }
@media (max-width: 1180px) {
  .login-shell { grid-template-columns: minmax(0,1fr) minmax(390px,.9fr); }
  .welcome-panel { padding: 44px; }
  .welcome-panel h1 { font-size: clamp(2.7rem,5vw,4.6rem); }
}
@media (max-width: 900px) {
  .brand-bar { padding-top: 14px; }
  .login-main { padding-top: 8px; }
  .login-shell { grid-template-columns: 1fr; min-height: auto; }
  .auth-panel { order: -1; padding: 38px clamp(22px,6vw,52px); }
  .welcome-panel { min-height: 390px; padding: 34px clamp(22px,6vw,52px); }
  .welcome-panel h1 { font-size: clamp(2.25rem,8vw,4rem); max-width: 680px; }
  .welcome-lead { margin-top: 18px; }
  .access-features { margin-top: 24px; }
}
@media (max-width: 620px) {
  .brand-bar,.login-main,.login-footer { width: calc(100% - 20px); }
  .brand-bar { padding-bottom: 8px; }
  .brand-mark { width: 46px; height: 46px; border-radius: 15px; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .login-shell { border-radius: 23px; }
  .auth-panel { padding: 30px 18px; }
  .auth-heading { margin-bottom: 24px; }
  .auth-heading h2 { font-size: 2rem; }
  .field input { height: 56px; font-size: 16px; }
  .form-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
  .primary-btn { width: 100%; }
  .welcome-panel { min-height: 300px; padding: 28px 20px; }
  .welcome-panel h1 { font-size: clamp(2.15rem,11vw,3.15rem); }
  .welcome-lead { font-size: .94rem; line-height: 1.55; }
  .access-features { display: none; }
  .mobile-card { display: none; }
  .login-footer { padding-bottom: 16px; }
  .status-card { padding: 28px 20px; border-radius: 22px; }
}
@media (max-height: 720px) and (min-width: 901px) {
  .login-shell { min-height: 620px; }
  .welcome-panel { min-height: 620px; padding-top: 44px; padding-bottom: 44px; }
  .welcome-panel h1 { font-size: clamp(2.7rem,5vw,4.7rem); }
  .access-features { margin-top: 22px; }
  .mobile-card { margin-top: 16px; min-height: 96px; }
}
