/* ============================================================
   SIGE — Login v2
   ============================================================ */

.login-body {
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}
.login-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  width: 100%;
  min-height: 100vh;
}

/* ─── Sidebar esquerda ───────────────────────────────────────── */
.login-aside {
  background: #101b2e;
  display: flex;
  flex-direction: column;
  padding: 40px 28px;
}



.login-aside-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 36px;
  border-bottom: 0.5px solid #1e2f47;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-logo {
  width: 100px;
  height: 100px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-aside-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #E6F1FB;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.login-aside-sub {
  font-size: 18px;
  color: #7a8fa6;
  letter-spacing: 3px;
  font-weight: 500;
  margin-top: -10px;
}

/* Cards de funcionalidades */
.login-aside-cards {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 0;
  flex: 1;
}

.login-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 3px solid #185FA5;
  background: #162237;
  cursor: default;
}

.login-feature-icon {
  width: 36px;
  height: 36px;
  background: #1a2e47;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-feature-title {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #E6F1FB;
  margin-bottom: 3px;
}

.login-feature-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: #8aaecf;
  line-height: 1.4;
}

/* Rodapé da sidebar */
.login-aside-footer {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: #378ADD;
  text-align: center;
  padding-top: 20px;
  border-top: 0.5px solid #1e2f47;
  line-height: 1.8;
}


/* ─── Área principal ─────────────────────────────────────────── */
.login-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

/* Topbar com botão de ajuda */
.login-topbar {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 10;
}

.login-help-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #1565c0;
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.login-help-btn:hover {
  background: #1976d2;
}

.login-help-btn svg {
  transition: transform 0.2s;
}

.login-help-dropdown {
  background: #ffffff;
  border: 0.5px solid #d0d5dd;
  border-radius: 10px;
  padding: 16px;
  width: 300px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.login-help-dropdown.hidden {
  display: none;
}

/* ─── Card do formulário ─────────────────────────────────────── */
.login-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 40px 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.login-card-header {
  margin-bottom: 28px;
}

.login-card-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a2636;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.login-card-header p {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: #6b7280;
}

/* ─── Inputs ─────────────────────────────────────────────────── */
.login-label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}


.login-input {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 14px !important;
  color: #374151 !important;
  background: #f4f6f9 !important;
  border: 1.5px solid #dde3ec !important;
  border-radius: 8px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, background 0.2s;
}

.login-input:focus {
  border-color: #1976d2 !important;
  background: #ffffff !important;
}

.login-input::placeholder {
  color: #9ca3af !important;
}

.login-input-wrapper {
  position: relative;
}

.login-input-wrapper .login-input {
  padding-right: 42px !important;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.btn-toggle-password:hover {
  color: #6b7280;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-error {
  font-size: 11px;
  color: #dc2626;
  margin-top: 4px;
  min-height: 16px;
}

/* ─── Botão de login ─────────────────────────────────────────── */
.login-btn {
  width: 100% !important;
  height: 48px !important;
  background: #1565c0 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  transition: background 0.2s !important;
}

.login-btn:hover {
  background: #1976d2 !important;
}


.login-btn:disabled {
  background: #7a8fa6 !important;
  cursor: not-allowed !important;
}

/* ─── Card de contato ────────────────────────────────────────── */
.login-contact-card {
  background: #e8f4fd;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 24px;
}

.login-contact-title {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1565c0;
  margin-bottom: 6px;
}

.login-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.login-contact-list li {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: #1565c0;
  padding: 2px 0;
}

.login-contact-version {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: #93c5fd;
  font-style: italic;
  margin-top: 10px;
}


/* ─── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 700px) {
  .login-wrapper {
    grid-template-columns: 1fr;
  }

  .login-aside {
    display: none;
  }

  .login-card {
    padding: 28px 20px;
  }
}
/* ============================================================
   DEMO — acesso rápido por perfil
   Usa os tokens do próprio SIGE para parecer nativo.
   ============================================================ */

.demo-box {
  display: none;                 /* JS revela se a demo estiver ativa */
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  background: var(--blue-50);
  border: 1.5px dashed var(--blue-600);
  border-radius: 10px;
}
.demo-box.visivel { display: flex; }

.demo-titulo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--blue-800);
}

.demo-sub {
  margin: -4px 0 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted, #667085);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-demo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.btn-demo:hover:not(:disabled) {
  border-color: var(--blue-600);
  box-shadow: 0 2px 8px rgba(55, 138, 221, .16);
  transform: translateY(-1px);
}
.btn-demo:active:not(:disabled) { transform: translateY(0); }
.btn-demo:disabled { opacity: .55; cursor: wait; }

.btn-demo .papel {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-900);
}
.btn-demo .desc {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--text-muted, #667085);
}

.demo-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--blue-100);
  font-size: 11px;
  color: var(--text-muted, #667085);
}

.btn-reset-demo {
  padding: 4px 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #667085);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.btn-reset-demo:hover:not(:disabled) {
  color: var(--blue-700);
  border-color: var(--blue-600);
}
.btn-reset-demo:disabled { opacity: .5; cursor: wait; }

@media (max-width: 480px) {
  .demo-grid { grid-template-columns: 1fr; }
}
