:root{--navy:var(--navy,#102532);--navy2:#0D314E;--teal:var(--teal,#0ba69f);--cyan:var(--cyan,#2ad6c6);--text:var(--navy,#102532);--muted:#667887;--surface:#f8fafc;--border:#dce6ec;--white:#fff;--destaque:var(--cyan,#2ad6c6);--radius:12px}
/* ==========================================================================
   Login Enki Infra - NFE+ (layout espelhado do sistema de monitoramento)
   Arquivo isolado: usado apenas pela tela de login.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.auth-page {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy,#102532);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

/* estrutura ---------------------------------------------------------------- */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* painel de marca --------------------------------------------------------- */
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 42px clamp(32px, 5vw, 76px) 34px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 24%, rgba(20, 184, 166, .26) 0%, transparent 36%),
    linear-gradient(135deg, var(--navy,#071d31) 0%, var(--navy,#102532) 54%, var(--navy2,#0d314e) 100%);
}

.auth-brand-grid {
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(102deg, #000 0%, rgba(0, 0, 0, .72) 42%, transparent 84%);
  mask-image: linear-gradient(102deg, #000 0%, rgba(0, 0, 0, .72) 42%, transparent 84%);
  pointer-events: none;
}

.auth-brand-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  right: -240px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 208, 197, .28), transparent 62%);
  filter: blur(12px);
  pointer-events: none;
}

.auth-brand-orbit {
  position: absolute;
  right: -170px;
  bottom: -260px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(94, 230, 214, .13);
  box-shadow: 0 0 0 80px rgba(94, 230, 214, .035), 0 0 0 170px rgba(94, 230, 214, .018);
  pointer-events: none;
}

.auth-logo {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.auth-logo:hover { transform: translateY(-2px); box-shadow: 0 22px 52px rgba(0, 0, 0, .32); }
.auth-logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}

.auth-brand-copy {
  position: relative;
  z-index: 2;
  margin: auto 0;
  padding: 44px 0;
  max-width: 520px;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9fd7cf;
}
.auth-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan,#2ee6cf);
  box-shadow: 0 0 0 5px rgba(46, 230, 207, .13);
  animation: auth-pulse 2.6s ease-out infinite;
}

.auth-brand h1 {
  margin: 20px 0 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(36px, 4.1vw, 56px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 800;
  color: #fff;
}
.auth-brand h1 span { color: var(--cyan,#2ad6c6); }

.auth-brand-copy > p {
  margin: 20px 0 0;
  max-width: 430px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #b3c7d4;
}

.auth-features {
  display: grid;
  gap: 15px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #a9bfcc;
}
.auth-features li strong {
  display: block;
  margin-bottom: 1px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e7f1f4;
}
.auth-feat-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(42, 214, 198, .13);
  border: 1px solid rgba(42, 214, 198, .3);
  color: var(--cyan,#2ad6c6);
}
.auth-feat-ico svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-brand-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 11px;
  letter-spacing: .02em;
  color: #7f9aae;
}
.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9fd7cf;
  font-weight: 600;
}
.auth-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan,#2ee6cf);
  box-shadow: 0 0 10px var(--cyan,#2ee6cf);
}

/* formulário -------------------------------------------------------------- */
.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px clamp(26px, 5vw, 64px);
  background: #fff;
  overflow: hidden;
}
.auth-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -260px;
  right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 166, 159, .1), transparent 65%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 396px;
  animation: auth-rise .55s ease both;
}

.auth-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--teal,#0c9287);
}
.auth-card h2 {
  margin: 12px 0 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--navy,#102532);
}
.auth-sub {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #667887;
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 11px 13px;
  border: 1px solid #f3c7c7;
  border-radius: 10px;
  background: #fff5f5;
  color: #b42318;
  font-size: 13px;
}
.auth-error svg {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.auth-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #3d5261;
}
.auth-control {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-field-ico {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #8aa0ad;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke .16s ease;
}
.auth-control input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 42px;
  border: 1px solid #dce6ec;
  border-radius: 12px;
  background: #f9fbfc;
  color: var(--navy,#102532);
  font: inherit;
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.auth-control input::placeholder { color: #9db0bc; }
.auth-control input:focus {
  outline: none;
  border-color: var(--teal,#14a090);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 160, 144, .13);
}
.auth-control:focus-within .auth-field-ico { stroke: var(--teal,#0ba69f); }
.auth-control input:-webkit-autofill,
.auth-control input:-webkit-autofill:hover,
.auth-control input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--navy,#102532);
  -webkit-box-shadow: 0 0 0 60px #f9fbfc inset;
  transition: background-color 9999s ease-in-out 0s;
}

.auth-eye {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8aa0ad;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.auth-eye:hover { color: var(--navy,#102532); background: #eef4f6; }
.auth-eye:focus-visible { outline: 2px solid var(--teal,#14a090); outline-offset: 1px; }
.auth-eye svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-eye .eye-closed { display: none; }
.auth-eye.is-visible .eye-open { display: none; }
.auth-eye.is-visible .eye-closed { display: block; }

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  margin-top: 6px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal,#14a090), var(--teal,#0ba69f));
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(11, 166, 159, .26);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.auth-submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow: 0 18px 38px rgba(11, 166, 159, .33);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit:focus-visible { outline: 2px solid var(--navy2,#0d314e); outline-offset: 2px; }
.auth-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.auth-submit:hover svg { transform: translateX(3px); }

.auth-hint {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12px;
  color: #8da0ad;
}
.auth-hint a {
  color: var(--teal,#0c9287);
  font-weight: 600;
}
.auth-hint a:hover { text-decoration: underline; }

.auth-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #e8eef2;
  font-size: 11px;
  color: #9db0bc;
}
.auth-legal a {
  color: var(--teal,#0c9287);
  font-weight: 600;
}
.auth-legal a:hover { text-decoration: underline; }

/* animações --------------------------------------------------------------- */
@keyframes auth-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 207, .34); }
  70% { box-shadow: 0 0 0 9px rgba(46, 230, 207, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 207, 0); }
}
@keyframes auth-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* responsivo -------------------------------------------------------------- */
@media (max-width: 1020px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand {
    min-height: auto;
    padding: 26px 24px 62px;
  }
  .auth-brand-copy { margin: 28px 0 0; padding: 0; max-width: 560px; }
  .auth-brand h1 { font-size: clamp(30px, 6.4vw, 42px); }
  .auth-brand-copy > p { margin-top: 14px; font-size: 14.5px; max-width: 520px; }
  .auth-features, .auth-brand-foot { display: none; }
  .auth-panel {
    align-items: flex-start;
    margin-top: -36px;
    border-radius: 28px 28px 0 0;
    padding: 38px 24px 44px;
    box-shadow: 0 -18px 45px rgba(7, 29, 49, .08);
  }
  .auth-card { max-width: 430px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .auth-brand { padding: 20px 18px 56px; }
  .auth-logo { padding: 8px 14px; border-radius: 12px; }
  .auth-logo img { height: 32px; max-width: 190px; }
  .auth-brand-copy { margin-top: 22px; }
  .auth-brand-copy > p { display: none; }
  .auth-brand h1 { font-size: 29px; }
  .auth-eyebrow { font-size: 9.5px; }
  .auth-panel { padding: 30px 20px 36px; }
  .auth-card h2 { font-size: 26px; }
  .auth-legal { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-pulse { animation: none; }
  .auth-card { animation: none; }
  .auth-submit, .auth-submit svg, .auth-logo { transition: none; }
}
