/* =====================================================================
   shared/login-padrao.css — tela de login padrão de TODOS os sistemas
   do Portal RH (mesma estrutura do login do Rellieus):
   lado institucional azul + cartão de acesso, "Voltar ao Portal RH"
   discreto, Manter-me conectado, Esqueci minha senha e rodapé discreto.
   Tudo prefixado com .lp para não interferir no CSS dos sistemas.
   ===================================================================== */
.lp, .lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
/* blindagem contra o CSS de cada sistema (labels em caixa alta, inputs 100%...) */
.lp label, .lp a, .lp p, .lp h1, .lp h2, .lp span, .lp li, .lp button, .lp input {
  text-transform: none; letter-spacing: normal; text-shadow: none; float: none; min-width: 0;
}
.lp label { display: inline; margin: 0; padding: 0; font-size: inherit; font-weight: 400; color: inherit; }
.lp h1, .lp h2, .lp p { margin: 0; padding: 0; border: 0; background: none; }
.lp form { margin: 0; padding: 0; width: auto; background: none; border: 0; box-shadow: none; display: block; }
.lp ul { margin: 0; }
html.lp-aberto, html.lp-aberto body { overflow: hidden !important; }
[data-lp-oculto] { visibility: hidden !important; }

.lp {
  --lp-navy: #04173f; --lp-ink: #0a1f4d; --lp-blue: #1559d6; --lp-cyan: #22d3ff; --lp-muted: #5b6b88;
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center;
  min-height: 100vh; min-height: 100dvh; overflow-y: auto; overflow-x: hidden;
  padding-bottom: 48px;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(34,211,255,.10), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(21,89,214,.10), transparent 60%),
    linear-gradient(135deg, #f4f8ff 0%, #e4edfb 100%);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--lp-ink); -webkit-font-smoothing: antialiased; text-align: left; line-height: 1.4;
}
.lp.lp-inline { position: relative; inset: auto; z-index: auto; }
.lp[hidden] { display: none !important; }
.lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 100%; pointer-events: none; z-index: 0; }
.lp-bg--m { display: none; }
.lp-streak { stroke-dasharray: 70 930; animation: lpStreak 7s linear infinite; }
@keyframes lpStreak { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

/* ---------- lado institucional ---------- */
.lp-hero {
  position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(36px, 6vw, 96px) clamp(48px, 10vw, 170px) clamp(36px, 6vw, 96px) clamp(28px, 6vw, 96px); color: #fff;
}
.lp-hero-inner { position: relative; z-index: 1; max-width: 580px; }
.lp-logo { width: clamp(180px, 20vw, 300px); height: auto; display: block; filter: drop-shadow(0 4px 18px rgba(0,0,0,.25)); }
.lp-line {
  width: 190px; height: 3px; border-radius: 3px; margin: clamp(22px, 3.4vw, 40px) 0 clamp(18px, 3vw, 34px);
  background: linear-gradient(90deg, rgba(34,211,255,0), var(--lp-cyan) 45%, rgba(34,211,255,0));
  box-shadow: 0 0 14px rgba(34,211,255,.75);
}
.lp .lp-title {
  margin: 0; font-size: clamp(44px, 6.2vw, 100px); font-weight: 900; font-style: italic; letter-spacing: -0.03em; line-height: .98;
  background: linear-gradient(180deg, #ffffff 35%, #bfe3ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(34,211,255,.22)); padding-right: .08em; overflow-wrap: normal; word-break: normal; hyphens: manual;
}
.lp .lp-title.lp-longo { font-size: clamp(32px, 3.6vw, 58px); }
.lp .lp-tag { margin: clamp(14px, 2vw, 24px) 0 0; font-size: clamp(16px, 1.7vw, 26px); font-weight: 500; line-height: 1.32; color: #e9f2ff; max-width: 520px; }
.lp-chips-label { margin-top: clamp(24px, 3vw, 38px); font-size: 10.5px; letter-spacing: 3px; font-weight: 700; color: rgba(159,233,255,.75); text-transform: uppercase; }
.lp-chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.lp-chip {
  padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #aeefff;
  background: linear-gradient(160deg, rgba(34,211,255,.14), rgba(34,211,255,.03)); border: 1px solid rgba(34,211,255,.35);
}
.lp-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.lp-fx i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #9fe9ff; box-shadow: 0 0 8px #22d3ff; opacity: 0; animation: lpFloat 9s linear infinite; }
.lp-fx i:nth-child(1) { left: 12%; top: 78%; } .lp-fx i:nth-child(2) { left: 28%; top: 90%; animation-delay: 1.6s; }
.lp-fx i:nth-child(3) { left: 44%; top: 70%; animation-delay: 3.1s; } .lp-fx i:nth-child(4) { left: 62%; top: 86%; animation-delay: 4.4s; }
.lp-fx i:nth-child(5) { left: 20%; top: 60%; animation-delay: 5.7s; } .lp-fx i:nth-child(6) { left: 52%; top: 95%; animation-delay: 6.9s; }
@keyframes lpFloat { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-260px); opacity: 0; } }

/* ---------- cartão de acesso ---------- */
.lp-panel { position: relative; z-index: 2; display: flex; justify-content: center; padding: 32px clamp(18px, 5vw, 80px); }
.lp-card {
  position: relative; width: 100%; max-width: 450px; padding: clamp(24px, 3.4vw, 42px); border-radius: 28px; border: 1px solid transparent;
  background:
    linear-gradient(180deg, #ffffff, #f9fbff) padding-box,
    linear-gradient(140deg, rgba(34,211,255,.65), rgba(21,89,214,.12) 38%, rgba(21,89,214,.12) 62%, rgba(34,211,255,.5)) border-box;
  box-shadow: 0 22px 40px -26px rgba(4,23,63,.45); animation: lpIn .6s cubic-bezier(.2,.8,.2,1) both;
}
.lp-card::before, .lp-card::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; border-color: var(--lp-cyan); border-style: solid; opacity: .9; }
.lp-card::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.lp-card::after { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }
@keyframes lpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lp-head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(22px, 3vw, 30px); }
.lp-avatar { width: 64px; height: 64px; flex-shrink: 0; border-radius: 18px; display: grid; place-items: center; color: var(--lp-ink); background: linear-gradient(150deg, #eaf2ff, #d4e3fb); box-shadow: inset 0 0 0 1px rgba(21,89,214,.10); }
.lp-avatar svg { width: 30px; height: 30px; }
.lp .lp-h1 { margin: 0; font-size: clamp(21px, 2.2vw, 29px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; color: var(--lp-ink); }
.lp .lp-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--lp-muted); }
.lp-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lp-field { position: relative; margin-bottom: 16px; }
.lp-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: #6a7a98; pointer-events: none; transition: color .2s; }
.lp .lp-input {
  display: block; max-width: none; min-height: 0; line-height: normal; appearance: none; -webkit-appearance: none;
  width: 100%; height: 58px; border-radius: 14px; border: 1.5px solid #d6e0ef; background: #f6f9ff; margin: 0;
  padding: 0 52px 0 54px; font: inherit; font-size: 16px; color: var(--lp-ink); outline: none; box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lp .lp-input::placeholder { color: #7d8aa3; }
.lp .lp-input:focus { border-color: var(--lp-blue); background: #fff; box-shadow: 0 0 0 4px rgba(34,160,255,.16); }
.lp-field:focus-within .lp-ico { color: var(--lp-blue); }
.lp .lp-eye { min-width: 0; box-shadow: none; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: #6a7a98; cursor: pointer; display: grid; place-items: center; padding: 0; }
.lp-eye:hover, .lp-eye.on { color: var(--lp-blue); background: rgba(21,89,214,.07); }
.lp-eye svg { width: 20px; height: 20px; }
.lp-eye .lp-off { display: none; } .lp-eye.on .lp-on { display: none; } .lp-eye.on .lp-off { display: block; }
.lp .lp-btn {
  text-transform: none; min-width: 0; max-width: none; padding: 0 18px;
  position: relative; overflow: hidden; width: 100%; height: 60px; margin-top: 10px; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px; font: inherit; font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .2px;
  background: linear-gradient(90deg, #0b47b0 0%, #06286a 55%, #0a3a91 100%);
  box-shadow: 0 12px 22px -12px rgba(6,40,106,.75), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .15s, box-shadow .2s, filter .2s;
}
.lp-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.lp-btn:hover::after { left: 120%; }
.lp-btn:hover { box-shadow: 0 14px 26px -12px rgba(6,40,106,.85), 0 0 0 3px rgba(34,211,255,.18), inset 0 1px 0 rgba(255,255,255,.2); }
.lp-btn:active { transform: translateY(1px); }
.lp-btn svg { width: 22px; height: 22px; transition: transform .2s; }
.lp-btn:hover svg { transform: translateX(4px); }
.lp-btn:focus-visible { outline: 3px solid rgba(34,211,255,.6); outline-offset: 3px; }
.lp-btn[disabled] { cursor: progress; filter: saturate(.85); }
.lp-btn[disabled] svg { display: none; }
.lp-btn[disabled]::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: lpSpin .8s linear infinite; }
@keyframes lpSpin { to { transform: rotate(360deg); } }
.lp-opts { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.lp .lp-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 400; color: var(--lp-ink); cursor: pointer; user-select: none; margin: 0; white-space: nowrap; }
.lp .lp-check input { flex: none; padding: 0; min-height: 0; box-shadow: none; position: static; opacity: 1; appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #9fb2d0; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.lp .lp-check input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.lp .lp-check input:checked { background: var(--lp-blue); border-color: var(--lp-blue); }
.lp .lp-check input:checked::after { opacity: 1; }
.lp .lp-check input:focus-visible { outline: 3px solid rgba(34,211,255,.5); outline-offset: 2px; }
.lp-sep { width: 1px; height: 28px; background: #d3dceb; }
.lp .lp-link { display: inline; white-space: nowrap; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--lp-blue); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.lp-link:hover { color: #0b3fa8; }
.lp-msg { margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; }
.lp-msg[hidden] { display: none; }
.lp-msg.err { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.lp-msg.ok { background: #e8f6ef; color: #12603d; border: 1px solid #b9e3cc; }
.lp-msg.info { background: #eaf2ff; color: #0b3fa8; border: 1px solid #c9dafb; }
.lp .lp-hint { margin: 2px 0 14px; padding-left: 18px; color: var(--lp-muted); font-size: 12.5px; }
.lp-back {
  position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); left: max(18px, env(safe-area-inset-left));
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; font-size: 12.5px; font-weight: 500; letter-spacing: .2px;
  color: rgba(214,236,255,.62); text-decoration: none; transition: color .2s;
}
.lp-back svg { width: 14px; height: 14px; transition: transform .2s; }
.lp-back:hover { color: #fff; } .lp-back:hover svg { transform: translateX(-3px); }
.lp-back:focus-visible { outline: 2px solid rgba(34,211,255,.6); outline-offset: 2px; border-radius: 4px; }
.lp-foot {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  text-align: right; font-size: 11px; color: #7a879c;
}
.lp-foot a { color: #4d6aa0; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- tablet e celular ---------- */
@media (max-width: 900px) {
  .lp { grid-template-columns: 1fr; align-items: start; align-content: start; padding-bottom: 70px; }
  .lp-bg--d { display: none; }
  .lp-bg--m { display: block; }
  .lp-hero { padding: max(56px, calc(env(safe-area-inset-top) + 44px)) 28px 64px; align-self: start; }
  .lp-hero-inner { max-width: none; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .lp-logo { width: clamp(150px, 42vw, 220px); }
  .lp-line { margin: 18px auto 16px; }
  .lp .lp-title { font-size: clamp(36px, 10vw, 64px); }
  .lp .lp-title.lp-longo { font-size: clamp(30px, 8vw, 52px); }
  .lp .lp-tag { font-size: 16px; margin-top: 10px; }
  .lp-chips-label, .lp-chips { display: none; }
  .lp-panel { margin-top: -36px; padding: 0 16px 24px; }
  .lp-foot { text-align: center; }
}
@media (max-width: 420px) {
  .lp-back { top: 10px; left: 12px; font-size: 12px; }
  .lp-card { border-radius: 22px; }
  .lp-head { gap: 12px; } .lp-avatar { width: 52px; height: 52px; border-radius: 15px; }
  .lp-input { height: 54px; }
  .lp-btn { height: 56px; font-size: 17px; }
  .lp-opts { justify-content: center; } .lp-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-streak, .lp-fx i, .lp-card { animation: none; } }
