/* ==========================================================================
   Sprint 28.3ZB — Login Institucional
   Fase inicial: SIGELTI LAB
   Modelo oficial de login da plataforma SIGELTI AI
   ========================================================================== */

:root {
  --login-bg-a: #111c30;
  --login-bg-b: #171719;
  --login-glow: rgba(176, 119, 24, .30);
  --login-card: #f8fafc;
  --login-white: #ffffff;
  --login-title: #111827;
  --login-text: #526079;
  --login-muted: #667085;
  --login-yellow: #f8b534;
  --login-border: #d8e0ea;
  --login-radius: 22px;
  --login-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
}

body.sig-login-body {
  min-height: 100vh;
  font-family: var(--login-font);
  color: var(--login-white);
  background:
    radial-gradient(circle at 12% 18%, var(--login-glow), transparent 32%),
    linear-gradient(115deg, var(--login-bg-a) 0%, #111827 48%, var(--login-bg-b) 100%);
}

.sig-login-shell {
  width: min(1050px, calc(100% - 42px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  align-items: center;
  gap: 78px;
  padding: 52px 0;
}

.sig-login-company-logo-card {
  width: min(480px, 100%);
  height: 194px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  padding: 22px;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
}

.sig-login-company-logo {
  display: block;
  max-width: 100%;
  max-height: 148px;
  object-fit: contain;
}

.sig-login-company-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #111827;
}

.sig-login-company-fallback span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #fff1c9;
  color: #9a6500;
  font-size: 34px;
  font-weight: 600;
}

.sig-login-company-fallback strong {
  font-size: 27px;
  font-weight: 600;
}

.sig-login-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #c38a27;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .13em;
}

.sig-login-brand-panel h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.035em;
}

.sig-login-brand-panel > p {
  max-width: 560px;
  margin: 20px 0 0;
  color: #e3e9f2;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

.sig-login-card {
  width: 100%;
  padding: 36px 36px 32px;
  color: var(--login-title);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: var(--login-radius);
  background: rgba(248,250,252,.96);
  box-shadow: 0 22px 54px rgba(0,0,0,.20);
  backdrop-filter: blur(12px);
}

.sig-login-institutional {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.sig-login-institutional img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.sig-login-institutional div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sig-login-institutional strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.02em;
}

.sig-login-institutional span {
  color: #7b8798;
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sig-login-card h2 {
  margin: 0;
  color: var(--login-title);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.025em;
}

.sig-login-subtitle {
  margin: 10px 0 22px;
  color: var(--login-muted);
  font-size: 14px;
  line-height: 1.45;
}

.sig-login-form {
  display: grid;
  gap: 8px;
}

.sig-login-form label {
  margin-top: 3px;
  color: #526079;
  font-size: 12px;
  font-weight: 400;
}

.sig-login-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: var(--login-title);
  border: 1px solid var(--login-border);
  border-radius: 12px;
  outline: none;
  background: #fff;
  font-family: var(--login-font);
  font-size: 13px;
  font-weight: 400;
}

.sig-login-form input:focus {
  border-color: #e6a625;
  box-shadow: 0 0 0 3px rgba(248,181,52,.16);
}

.sig-login-form button {
  width: fit-content;
  min-width: 86px;
  height: 42px;
  margin-top: 6px;
  padding: 0 18px;
  color: #111827;
  border: 0;
  border-radius: 12px;
  background: var(--login-yellow);
  cursor: pointer;
  font-family: var(--login-font);
  font-size: 13px;
  font-weight: 500;
}

.sig-login-form button:hover { filter: brightness(.97); }

.sig-login-security {
  margin: 18px 0 0;
  color: #68758b;
  font-size: 11px;
  line-height: 1.5;
}

.sig-login-alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.sig-login-alert.error {
  color: #991b1b;
  background: #fee2e2;
}

@media (max-width: 900px) {
  .sig-login-shell {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 38px 0;
  }

  .sig-login-brand-panel {
    max-width: 620px;
    margin: 0 auto;
  }

  .sig-login-card {
    max-width: 540px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .sig-login-shell {
    width: min(100% - 26px, 520px);
  }

  .sig-login-company-logo-card {
    height: 154px;
    border-radius: 20px;
  }

  .sig-login-company-logo {
    max-height: 112px;
  }

  .sig-login-card {
    padding: 28px 22px 25px;
  }
}
